UPDATED Exam Questions and
CORRECT Answers
The \n digraph forces the print() function to: - CORRECT ANSWER Break the output line
The meaning of the keyword parameter is determined by: - CORRECT ANSWER The
argument's name specified along with its value.
The value twenty point twelve times ten raised to the power of eight should be written as -
CORRECT ANSWER 20.12E8
The 0o prefix means that the number after it is denoted as - CORRECT ANSWER octal
The ** operator - CORRECT ANSWER · performs exponentiation
The result of the following division - CORRECT ANSWER · is equal to 1.0
Only one of the following statements is false - which one? - CORRECT ANSWER · the
result of the / operator is always an integer value
1. Left‑sided binding determines that the result of the following expression - CORRECT
ANSWER ·0
1. One of the following variables' names is illegal - which one? - CORRECT ANSWER ·
True
The print() function can output values of: - CORRECT ANSWER · any number of
arguments (including zero)
,1. What is the output of the following snippet?
x=1
y=2
z=x
x=y
y=z
print(x,y) - CORRECT ANSWER 21
1. What is the output of the following snippet if the user enters two lines containing 2 and 4
respectively?
x=input()
y=input()
print(x+y) - CORRECT ANSWER 24
1. What is the output of the following snippet if the user enters two lines containing 2 and 4
respectively?
x=int(input())
y=int(input())
x=x//y
y=y//x
print(y) - CORRECT ANSWER · the code will cause a runtime error
1. What is the output of the following piece of code if the user enters two lines containing 2 and
4 respectively?
x=int(input())
y=int(input())
x=x/y
y=y/x
,print(y) - CORRECT ANSWER · 8.0
1. What is the output of the following snippet if the user enters two lines containing 11 and 4
respectively?
x=int(input())
y=int(input())
x=x%y
x=x%y
y=y%x
print(y) - CORRECT ANSWER 1
1. What is the output of the following snippet if the user enters two lines containing 3 and 6
respectively?
x=input()
y=int(input())
print(x*y) - CORRECT ANSWER · 333333
1. What is the output of the following snippet?
z=y=x=1
print(x,y,z,sep='*') - CORRECT ANSWER 1*1*1
1. What is the output of the following snippet?
x = 2 + 3 * 5.
print(X) - CORRECT ANSWER · the snippet will cause an execution error
What is the output of the following snippet?
x = + 3 // 3 + 4 ** 2
print(x) - CORRECT ANSWER · 17.5
, 1. What is the output of the following snippet if the user enters two lines containing 2 and 4
respectively?
x=int(input())
y=int(input())
print(x+y) - CORRECT ANSWER ·6
1. An operator able to check whether two values are equal is coded as: - CORRECT
ANSWER · ==
1. The value eventually assigned to x is equal to:
x=1
x = x == x - CORRECT ANSWER · True
1. How many stars will the following snippet send to the console?
i=0
while i <= 3 :
i += 2
print("*") - CORRECT ANSWER · two
How many stars will the following snippet send to the console?
i=0
while i <= 5 :i += 1
if i % 2 == 0:
break
print("*") - CORRECT ANSWER one
How many hashes will the following snippet send to the console?