Python MCQ
Python MCQ
c) if x < y: d) if x < y:
print('foo') print('foo')
elif y < x: else:
print('bar') print('bar')
else:
print('baz')
2. All keywords in Python are in
A. lower case
B. UPPER CASE
C. Capitalized
D. None of the mentioned
A. 31 characters
B. 63 characters
C. 79 characters
D. none of the mentioned
4. Which of the following is an invalid statement?
A. abc = 1,000,000
B. a b c = 1000 2000 3000
C. a,b,c = 1000, 2000, 3000
D. a_b_c = 1,000,000
A) test[5] C) test['5']
B) test[4] D) test['4']
A) a C) c
B) b D) d