Join Now
Home Aptitude Reasoning DI VA GK CA CA Hindi Quiz Placements
Which of the following is a valid data type in Python?
Integer
Real
Complex
All of the above
What is the data type of the variable 'is_true' in the following code?is_true = True
String
Boolean
Float
9
Error
None of the above
What is the output of the following code?
num = 2.5 print(type(num))
2.5
'2.5'
float
str
What is the data type of the variable 'name' in the following code?name = "John Doe"
1
2
3
4
my_variable
myVariable
1variable
_variable
0
Byte
Long
Double