Exam 2: Data and Expressions

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

Based on its rules of operator precedence, Python would evaluate the expression below to \quad \quad \quad 4 + 2 * 5 + 3**2

(Multiple Choice)
4.8/5
(38)

Give a Python statement using type conversion to convert the floating value of variable x = 1.24 to an integer value.

(Short Answer)
4.8/5
(42)

Assuming the integer variable num has already been assigned a value, give a Python statement incrementing num by 5.

(Short Answer)
4.8/5
(33)

An ______________ is a sequence of one or more characters that must not begin with a digit.

(Short Answer)
4.8/5
(39)

In Python, the resulting value from a numeric calculation resulting in arithmetic overflow is

(Multiple Choice)
4.8/5
(43)

In Python, an empty string is denoted by

(Multiple Choice)
4.8/5
(43)

An escape sequence in Python is a sequence of characters beginning with '\n'.

(True/False)
4.8/5
(35)

In Python, an empty string may be represented with a pair of matching quotes containing only a single space character.

(True/False)
4.7/5
(38)

The character encoding of the character '2' in Python is 00000010.

(True/False)
4.9/5
(45)

The id function produces a unique number identifying a specific value (object) in memory.

(True/False)
4.8/5
(30)

What is displayed by the following? Print(format( '-', '->8 '), 'Hello ')

(Multiple Choice)
4.8/5
(31)
Showing 61 - 71 of 71
close modal

Filters

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