Exam 2: Input, Processing, and Output

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

A(n) _______________ character is a special character that is preceded with a backslash, appearing inside a string literal.

Free
(Short Answer)
4.9/5
(88)
Correct Answer:
Verified

escape

Python formats all floating-point numbers to two decimal places when outputting using the print statement.

Free
(True/False)
5.0/5
(77)
Correct Answer:
Verified

False

Python uses _______________ to categorize values in memory.

Free
(Short Answer)
4.8/5
(75)
Correct Answer:
Verified

data types

Comments in Python begin with the # character.

(True/False)
4.9/5
(70)

A(n) _______________ is a name that represents a value stored in the computer's memory.

(Short Answer)
4.9/5
(74)

The line continuation character is a _____.

(Multiple Choice)
5.0/5
(69)

Python allows programmers to break a statement into multiple lines.

(True/False)
4.8/5
(72)

_______________ are notes of explanation that document lines or sections of a program.

(Short Answer)
4.7/5
(71)

According to the behavior of integer division, when an integer is divided by an integer, the result will be a float.

(True/False)
4.8/5
(86)

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

(Multiple Choice)
5.0/5
(83)

The program development cycle is made up of _____ steps that are repeated until no errors can be found in the program.

(Multiple Choice)
4.9/5
(83)

The _______________ specifier is a special set of characters that specify how a value should be formatted.

(Short Answer)
4.9/5
(80)

A flowchart is a tool that programmers use to design programs.

(True/False)
4.9/5
(69)

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

(True/False)
4.9/5
(71)

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

(True/False)
4.8/5
(72)

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/False)
4.9/5
(81)

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

(Multiple Choice)
4.8/5
(77)

When applying the .3f formatting specifier to the following number, 76.15854, the result is _______________.

(Short Answer)
4.8/5
(79)

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

(Multiple Choice)
4.8/5
(79)

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

(Multiple Choice)
4.8/5
(73)
Showing 1 - 20 of 35
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)