NEW
Font size
S
M
L
XL
WorksheetsLesson 11 - Iterative statements
Total questions: 10
Worksheet time: 5mins
Name
Class
Date
1.
How many times hello will be printed ?
a)
6
b)
30
c)
12
d)
5
2.
how many hello will be printed ?
a)
6
b)
0
c)
5
d)
12
3.
What is the maximum choices will we have in 2 level nested if else hierarchy ?
a)
3
b)
4
c)
5
d)
6
4.
How many times hii will be printed ?
a)
0
b)
1
c)
3
d)
4
5.
What will be the output of the following code ?
Note:- ord(‘A’)=65, ord(‘a’)=97
a)
khan
b)
MyameIsKa
c)
MyameIsKhan
d)
none
6.
What will be the output of following code ?
a)
591318
b)
591217
c)
591357
d)
591317
7.
what will be the output of the following statement ?
print(str(int(float(int(5.6)))))
a)
5
b)
'5'
c)
5.6
d)
'5.6'
8.
what will be the output of the following statement ?
a)
0
b)
5
c)
Error
d)
none
9.
What will be the output of the following code ?
a)
1 2 3 4
b)
**********
c)
*
**
***
****
d)
none
10.
Which type of python loop works for condition -
a)
for
b)
while
c)
break
d)
continue
Reset
