Font size
S
M
L
XL
WorksheetsPython
Total questions: 15
Worksheet time: 8mins
Name
Class
Date
1.
Which of the following are Python Data Types?
a)
List
b)
Tuple
c)
Dictionary
d)
All of these
2.
What is the output?
a)
Equal
b)
Not Equal
3.
print('x')
#print('y')
#print('z')
a)
x
b)
xy
c)
xyz
d)
yz
4.
a)
1
b)
2
c)
3
d)
Error
5.
a)
[10,20,30]
b)
[20,30,40]
c)
[40,30,20]
d)
[30,20,10]
6.
What is the output?
a)
Yes
b)
No
7.
a)
True
b)
False
c)
Error
8.
Can you add else without if statement?
a)
Yes
b)
No
9.
Can a conditional statement exist without elif?
a)
Yes
b)
No
10.
How can a conditional statement with three cases be written?
a)
if condition:
else:
else:
b)
if condition:
elif condition:
else:
c)
if condition:
elif condition:
elif condition:
d)
elif condition:
elif condition:
elif condition:
11.
13%5=
a)
2
b)
3
c)
4
d)
5
12.
Floor Division returns the quotient.
23//3=
a)
2
b)
4
c)
7
d)
8
13.
Which operator is used for exponents?
a)
*
b)
**
c)
/
d)
//
14.
What is the output?
a)
X
b)
Y
c)
X
Y
d)
No output
15.
What is the output?
a)
X
b)
Y
c)
X
Y
d)
No output
Reset
