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.

(Short Answer)
4.7/5
(32)

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

(Short Answer)
4.9/5
(35)

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
(39)

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

(Multiple Choice)
4.8/5
(34)

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

(Multiple Choice)
4.9/5
(42)

The % symbol is the remainder operator and it is also known as the _______________ operator.

(Short Answer)
4.7/5
(40)

If value1 is 2.0 and value2 is 12, what is the output of the following command? print(value1 * value2)

(Multiple Choice)
4.9/5
(33)

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

(Short Answer)
4.8/5
(40)

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

(True/False)
4.8/5
(45)

The \t escape character causes the output to skip over to the next horizontal tab.

(True/False)
4.9/5
(31)

The result of the expression 12.3 + 6.7 is _______________.

(Short Answer)
4.7/5
(32)

The line continuation character is a _____.

(Multiple Choice)
4.9/5
(40)

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.7/5
(38)

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

(Multiple Choice)
4.8/5
(26)

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

(Multiple Choice)
4.7/5
(39)
Showing 21 - 35 of 35
close modal

Filters

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