WorksheetsPython-Quiz-Basic-Datatypes
Total questions: 10
Worksheet time: 5mins
Name
Class
Date
1.
What is the output of
7//2 ?
a)
3
b)
4
c)
3.5
d)
None
2.
What is the output of
9 / 2 ?
a)
4.5
b)
4
c)
5
d)
None
3.
What is the output of
round(4.4) ?
a)
4
b)
5
c)
4.5
d)
None
4.
What is the output of
print(int("4.5")) ?
a)
4
b)
4.5
c)
Error
d)
5
5.
What is the output of
print(str(4.5)) ?
a)
4.5
b)
"4.5"
c)
5
d)
Error
6.
What is the ouput of
str(4.5)?
a)
'4.5'
b)
4.5
c)
45
d)
Error
7.
What is the output of
print(float("4.5") ?
a)
4.5
b)
Error
c)
5
d)
4
8.
What is the output of
print(bool("ABC")) ?
a)
True
b)
False
c)
Error
9.
What is the output of
bool(4.5) ?
a)
True
b)
False
c)
Error
10.
What is the output of
bool('0') ?
a)
True
b)
False
c)
Error
100 %
