Python Essentials Module 2 Quiz
A value returned by the 'input()' function is:
a. a float
b. a string
c. an integer – answer b. a string
A 'keyword' is a word that:
a. is the most important word in the whole program
b. is the key to the puzzle
c. cannot be used as a variable name – answer c. cannot be used as a variable name
Right-sided binding means that the following expression:
'1 ** 2 ** 3"
will be evaluated:
a. in random order
b. from left to right
c. from right to left - answerc. from right to left
Only one of the following statements is TRUE - which one?
a. neither statement can be evaluated
b. addition precedes multiplication
c.multiplication precedes addition - answerc.multiplication precedes addition
The result of the following addition '123 + 0.0':
a. cannot be evaluated
b. is equal to '123'
c. is equal to '123.0' - answerc. is equal to '123.0'
The '//' operator:
a. performs regular division
b. performs integer division
c. does not exist - answerb. performs integer division
A value returned by the 'input()' function is:
a. a float
b. a string
c. an integer – answer b. a string
A 'keyword' is a word that:
a. is the most important word in the whole program
b. is the key to the puzzle
c. cannot be used as a variable name – answer c. cannot be used as a variable name
Right-sided binding means that the following expression:
'1 ** 2 ** 3"
will be evaluated:
a. in random order
b. from left to right
c. from right to left - answerc. from right to left
Only one of the following statements is TRUE - which one?
a. neither statement can be evaluated
b. addition precedes multiplication
c.multiplication precedes addition - answerc.multiplication precedes addition
The result of the following addition '123 + 0.0':
a. cannot be evaluated
b. is equal to '123'
c. is equal to '123.0' - answerc. is equal to '123.0'
The '//' operator:
a. performs regular division
b. performs integer division
c. does not exist - answerb. performs integer division