Python - MCQ

Multiple Choice Questions


Share with a Friend

 

Python - Multiple Choice Questions (MCQ) - Python Operators and Control Flow Statements - Set 10

11. What is the output of print(5 is 5) 
A). TRUE
B). FALSE
C). Error
D). NA
View Answer
Correct: A



12. What is the output of print(1 in L1) L1=[1,2,3] 
A). 1
B). TRUE
C). FALSE
D). NameError
View Answer
Correct: D


13. The range() function by default returns a ____ 
A). tuple
B). string
C). dict
D). list
View Answer
Correct: D



14. Select Conditional Statements that are available in python 
A). if
B). else if
C). elif
D). if elif
E). if else
View Answer
Correct: A, D, E


15. What is the output of list(range(10)) 
A). [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
B). [ 1, 2, 3, 4, 5, 6, 7, 8, 9,10]
C). [(1, 2, 3, 4, 5, 6, 7, 8, 9,10)
D). (0, 1, 2, 3, 4, 5, 6, 7, 8, 9)
View Answer
Correct: A



 
 
 
   
   
   
UltraInfo Technologies
ITDeveloper