In Python 3, what is the value of 7 / 2?
Correct answer C. 3.5
Subject / 929 questions
Page 36 of Programming multiple-choice questions with answers. Tap an option to check yourself.
Page 36 of 47
Correct answer C. 3.5
Correct answer A. 5, 4
Correct answer D. 3000
Correct answer B. Only (IT, 9000)
Correct answer D. 3
Correct answer C. 2
Correct answer B. 3
Correct answer A. In the function's __doc__ attribute
Correct answer D. IndentationError
Correct answer B. Types belong to objects and are checked at runtime, so a name can be rebound to a value of a different type
Correct answer A. tuple
Correct answer B. The int grows automatically, because integers have unlimited precision
Correct answer A. A ValueError is raised
Correct answer D. find() returns -1, while index() raises ValueError
Correct answer A. Python 3.6
Correct answer A. Dictionary keys must be hashable, and lists are mutable and unhashable
Correct answer C. Python 3.7
Correct answer B. set()
Correct answer A. (x * 2 for x in range(5))
Correct answer A. remove()