Class 11 CS Python Topic Mcq
Class 11 CS Python Topic Mcq
1) If you use the following code: user_input = input("Enter your name: "), what will be displayed to
the user?
(A)Enter your name: (B)name (C)user_input (D)None of the above
2) Which of the following is a valid Python keyword?
(A) function (B) def (C) define (D) method
3) Which operator is used to check if two variables refer to the same object?
(A) == (B) is (C) > (D) <
4) What is the output of the following code? print(2**3 // 3 + 2+1*4)
(A) [1, 2, 3] (B) [1, 2, 3, [4, 5]] (C) [4, 3, 2, 1] (D) Error
21) Assertion (A): The break statement in Python is used to exit a loop.
Reason (R): The break statement in Python is only applicable in for loops.