Python: Unit 2 MCQ Questions
Python: Unit 2 MCQ Questions
6.Select conditional statements that are available in python . (select any three
from below).
a) if
else if
b) elif
c) if elif
d) if else
13.What is ‘ range () ’?
a) Method
b) Class
c) Variable
d) Function
e) All of the above
19.While loop can be used for printing ‘ hello ‘ message 17 times without
incrementing value of loop counter.
a) True
b) False
20. for loop can be used to find odd numbers between 0 to 100.
a) True
b) False
b=11
if a>b
print (“a is greater”)
else
print(“b is greater”)
a) A is greater
b) B is greater
c) Error
d) 10