Page 194 - Computer Science Class 11 Without Functions
P. 194
Solved Exercise
A. Multiple Choice Questions
1. WhichloflShtlfoaaowinglifltSnStetnSlitltynSncSicnaaylcorrtcS?
n.l iflnuebtrl>=10:l b. Ifl(nuebtrl>=l10)l c. iflnuebtrl>=l10,lShtnl d. Iflnuebtrl>=10lShtnl
2. WhnSlwiaalbtlShtlouSpuSlproductdlonltxtcuSionloflShtlfoaaowinglcodtltnipptS?
num1, num2, num3 = 1, 3, 5
if num1 + num2 + num3:
print("if condition holds True")
else:
print("In else clause")
n.l if condition holds True
b.l In else clause
c.l ynSnxlError
d.l NolouSpuS
3. WhichloflShtlfoaaowinglchnrncStrtlenrktlShtltndloflShtlhtndtrloflnlcoepoundltSnStetnS?
n.l : b. # c. * d. ;
4. WhichloflShtlfoaaowinglitlnoSlnlconSroaltSnStetnS?
n.l ifltSnStetnS
b.l if-else tSnStetnS
c.l nttignetnS
d.l if-elif-else tSnStetnS
5. WhichloflShtlfoaaowinglitlnlvnaidlktyword?
n.l IF b. if c. Elif d. ELSE
6. WhnSlwiaalbtlShtlouSpuSlproductdlonlShtltxtcuSionloflShtlfoaaowinglcodt?
height = 190
if height >= 180:
print("You cross the bar")
print("Good")
print("Sorry")
n.l You cross the bar
b.l Sorry
c.l You cross the bar
Good
d.l You cross the bar
Good
Sorry
7. WhichloflShtlfoaaowingltSnStetnStlitlnoSlSrut?
n.l Anlif tSnStetnSleutSlhnvtlnnltattlcanutt.
b.l An if tSnStetnSlwiShinlnn else baocklforetlnlnttStd if tSnStetnS.
c.l AnlifltSnStetnSlcnnlhnvtlnnylnuebtrlofleliflcanuttt.
d.l An ifltSnStetnSlenylnoSlhnvtlnnlelselcanutt.
192 Touchpad Computer Science-XI

