WorksheetsGrade 5 - Python Types (int, float, str, bool, typecasting)
Total questions: 40
Worksheet time: 20mins
What type is 25?
int
float
str
bool
What type is 25.5?
int
float
str
bool
What type is 'Hello'?
str
int
float
bool
What type is True?
bool
str
int
float
What type is False?
bool
int
str
float
What is the type of '123'?
str
int
float
What will int('5') become?
5
'5'
5.0
True
What type is 3.0?
float
int
str
bool
What type is 0?
int
str
float
bool
What type is 'Python'?
str
int
float
bool
What will str(10) become?
'10'
10
10.0
True
What will float(4) become?
4.0
4
'4'
True
What type is '4.5'?
str
float
int
bool
What type is bool(1)?
bool
int
str
float
What type is bool(0)?
bool
int
str
float
What type is 'True'?
str
bool
int
float
What will int(7.8) become?
7
7.8
'7.8'
True
What will float('8') become?
8.0
'8.0'
8
True
What type is type(5)?
(a)
What will str(3.5) become?
'3.5'
3.5
3
True
What is the type of 'False'?
str
bool
int
float
What type is 100?
int
float
str
bool
What is the type of 10 / 2?
float
int
str
bool
What is the type of 10 // 2?
int
float
str
bool
What type is 0.99?
(a)
What type is '0.99'?
str
float
int
bool
What type is bool('Hello')?
bool
str
int
float
What type is bool('')?
bool
str
int
float
What type is bool(10)?
bool
str
int
float
What type is bool(0)?
bool
str
int
float
What will int(3.9) become?
3
4
3.0
"3"
What will float(7) become?
7.0
'7'
7
True
What will str(False) become?
'False'
False
0
True
What will str(True) become?
'True'
True
1
'1'
What type is 12.0?
float
int
str
bool
What will int('10') + 5 give?
15
'105'
Error
10.5
What will str(5) + str(2) give?
'52'
7
10
52
What will float('3.0') + 2 give?
5.0
'3.02'
Error
3.2
What will bool('Python') return?
True
False
None
Error
What will bool('') return?
False
True
None
Error
