CIS 115 Quiz 1

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

Which mathematical operator is used to raise five to the second power in python?

**

After the execution of the following statement, the variable price will reference the value________.price = int(68.549)

68

In a print statement, you can set the _____ argument to a space or empty string to stop the output from advancing to a new line.

End

True/False: In Python, math expressions are evaluated from left to right, no matter what the operators are.

False

True/False: Python formats all floating-point numbers to two decimal places when outputting using the print statement

False

After the execution of the following statement, the variable sold will reference the numeric literal value as a(n) _____ data type: sold = 256.752

Float

The output of the following print statement is: print 'I\'m ready to begin'

I'm ready to begin

The _____ function reads a piece of data that has been entered at the keyboard and returns that piece of data, as a string, back to the program.

Input

The _____ built-in function is used to read a number that has been typed on the keyboard.

Input()

What type of error produces incorrect results but does not prevent the program from running?

Logic

What is the informal language that programmers use to create models of programs that have no syntax rules and are not meant to be compiled or executed?

Pseudocode

What symbol is used to mark the beginning and end of a string

Quotation

What is the output of the following print statement? print('The path is D:\\sample\\test.')

The path is D:\sample\test.

True/False: Comments in Python begin with the # character.

True

True/False: Computer programs typically perform three steps: Input is received, some process is performed on the input, and output is produced.

True

True/False: In Python, print statements written on separate lines do not necessarily output on separate lines.

True

True/False: Python allows programmers to break a statement into multiple lines.

True

True/False: When using the camelCase naming convention, the first word of the variable name is written in lowercase letters and the first character of the second and subsequent words are written in uppercase letters.

True

The line continuation character is a _____

\

A(n) _____ is a diagram that graphically depicts the steps that take place in a program.

flowchart


Set pelajaran terkait

PCC HI-101 History of Civ. Test 2

View Set

algebra 1a - unit 3: linear systems and inequalities

View Set

State Exam Outline (Part 1 - Types of Policies and Features) - 8%

View Set

Life and Health Insurance Exam Study

View Set