Join Now
Home Aptitude Reasoning DI VA GK CA CA Hindi Quiz Placements
What is the output of the following code?
num = 5 print(type(num))
5
'5'
int
str
What is the data type of the variable 'is_true' in the following code?is_true = True
Integer
String
Boolean
Float
1
2
3
4
HelloWorld
Hello World
Hello+"World"
None of the above
Which of the following is a valid data type in Python?
Real
Complex
All of the above
my_variable
123variable
_my_variable
myVariable
What is the data type of the variable 'age' in the following code?age = 25
What is the data type of the variable 'name' in the following code?name = "John Doe"
3.3333
0.3333
List
Dictionary
Tuple
Set