Exam 2: Data and Expressions

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

A keyword is a predefined identifier in Python.

(True/False)
4.8/5
(37)

Which one of the following is not an expression?

(Multiple Choice)
4.8/5
(33)

The _____ and _____ characters are used in format specifiers in Python to left or right justify a string in a specified field width.

(Short Answer)
4.8/5
(36)

An operator is a symbol that represents a particular operation that may be performed on its operands.

(True/False)
4.9/5
(36)

Match the respective data types with their value: -String

(Multiple Choice)
4.8/5
(41)

Program lines may be joined by use of the backslash character.

(True/False)
4.8/5
(40)

The - symbol is used as both a unary and a binary operator in Python.

(True/False)
4.9/5
(40)

Give a Python statement that assigns variable num to the integer value one thousand, two hundred and twenty-four.

(Short Answer)
4.7/5
(32)

A backslash (\) at the end of a line of a Python program is used to

(Multiple Choice)
4.9/5
(38)

Floating-point values have both a limited range and a limited precision.

(True/False)
4.9/5
(37)

Python is case sensitive, so a variable Line is different from a variable named line.

(True/False)
4.9/5
(46)

You cannot rely on the result of floating-point calculations to be mathematically precise.

(True/False)
4.9/5
(38)

A numeric literal may be an __________ or _________________ value.

(Short Answer)
4.9/5
(42)

In Python, a positive sign may be placed in front of positive numeric values.

(True/False)
4.8/5
(44)

Arithmetic overflow can result from the division of two floating-point values.

(True/False)
4.9/5
(37)

A calculated result too small to be represented is referred to as ______________________.

(Short Answer)
4.9/5
(32)

Indicate what is displayed by the following. tax = .08 print('Your cost: $', format((1 + tax) * 12.99, '.2f''))

(Short Answer)
4.9/5
(37)

All input is returned by the input function as a string type.

(True/False)
4.9/5
(44)

An identifier that already has a predefined meaning in Python, and therefore cannot be used as a variable, is known as a _________.

(Short Answer)
4.8/5
(33)

The built-in _________________ function of Python can be used to control the display of both numeric and string values.

(Short Answer)
4.8/5
(37)
Showing 21 - 40 of 71
close modal

Filters

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