NEW
Font size
S
M
L
XL
WorksheetsLesson 12 - Transfer 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)
5
c)
0
d)
12
3.
How many times hello will be printed ?
a)
3
b)
4
c)
5
d)
6
4.
How many times hii will be printed ?
a)
1
b)
3
c)
4
d)
5
5.
What will be the output of the following code ?
Note:- ord(‘A’)=65, ord(‘a’)=97
a)
PPaassss
b)
MyameIsKa
c)
MyameIsKhan
d)
MyNameIsKhan
6.
What will be the output of following code ?
a)
591
b)
59131
c)
5
d)
591317
7.
what will be the output of the following statement ?
print(str(int(float(int(True)))))
a)
'5'
b)
'1'
c)
1
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)
*
**
***
****
10.
The keyword not present in python is -
a)
for
b)
in
c)
switch
d)
is
Reset
