Join Now
Home Aptitude Reasoning DI VA GK CA CA Hindi Quiz Placements
What is the output of the following code?
num = 2.5 print(type(num))
2.5
'2.5'
float
str
3.3333
3
1
0.3333
num = 5 print(type(num))
5
'5'
int
Complex
Byte
Long
Double
my_variable
123variable
_my_variable
myVariable
0
What is the data type of the variable 'age' in the following code?age = 25
Integer
String
Float
Boolean
What is the data type of the variable 'name' in the following code?name = "John Doe"
1variable
_variable
9
Error
None of the above