Take a look at the snippet, and choose the true statements: (Choose two.)
A. nums is longer than vals
B. nums and vals are of the same length
C. vals is longer than nums
D. nums and vals refer to the same list
What is the expected output of the following code?
A. efg
B. abc
C. def
D. The code is erroneous.
E. abcde
F. None of the above.
What is the expected output of the following code?
A. 4
B. 2
C. 10
D. 0
E. 1
F. 3
What would you insert instead of ???, so that the program prints True to the monitor?
A. x < y
B. x is not y
C. x is y
D. x != y
What is true about compilation? (Choose two.)
A. The code is converted directly into machine code executable by the processor
B. It tends to be faster than interpretation
C. It tends to be slower than interpretation
D. Both you and the end user must have the code
What is the expected output of the following code?
A. 4
B. The code is erroneous.
C. 2
D. 1
Which of the following items are present in the function header?
A. function name
B. return value
C. parameter list
D. function name and parameter list
What is the expected output of the following code? print(chr(ord('p') + 3))
A. q
B. r
C. t
D. s