NEW
Font size
WorksheetsAdvance Python
Total questions: 10
Worksheet time: 2mins
What is the maximum length of a Python identifier?
32
16
128
No fixed length is specified
What will be the output of the following code snippet?
print(2**3 + (5 + 6)**(1 + 1))
129
8
121
None of the above
What will be the datatype of the var in the below code snippet?
var = 10
print(type(var))
var = "Hello"
print(type(var))
str and int
int and int
str and str
int and str
How is a code block indicated in Python?
Brackets
Indentation
Key
None of the above
What will be the output of the following code snippet?
print(type(5 / 2))
print(type(5 // 2))
float and int
int and float
float and float
int and int
Which of the following concepts is not a part of Python?
Pointers
Loops
Dynamic Typing
All of the above
Which of the following statements are used in Exception Handling in Python?
Try
Except
Finally
All of the above
Which of the following types of loops are not supported in Python?
For
While
Do-While
None of the above
Which of the following is the proper syntax to check if a particular element is present in a list?
If ele in list
If not ele not in list
Both A and B
None of the above
Which of the following functions converts date to corresponding time in Python?
strptime ( )
strftime ( )
Both A and B
None of the above
