Python |
Level:-Basic
|
Q(1) |
Which of the following is not a core datatype? |
A | Lists |
B | Dictionary |
C | Tuples |
D | Class |
Q(2) |
int is the return type of function id. |
A | True |
B | False |
Level:-Intermediate
|
Q(1) |
Suppose listExample is [3, 4, 5, 20, 5, 25, 1, 3], what is list1 after listExample.pop()? |
A | 1 |
B | 3 |
C | 25 |
D | 20 |
Q(2) |
To lift the pen, use ______. |
A | turtle.penUp() |
B | turtle.penup() |
C | turtle.lift() |
D | turtle.up() |
Level:-Expert
|
Q(1) |
What will be the output?
data = [[[1, 2], [3, 4]], [[5, 6], [7, 8]]]
print(data[1][0][0]) |
A | 1 |
B | 2 |
C | 4 |
D | 5 |
Q(2) |
Suppose list1 is [3, 4, 5, 20, 5, 25, 1, 3], what is list1 after list1.reverse()? |
A | [3, 4, 5, 20, 5, 25, 1, 3] |
B | [1, 3, 3, 4, 5, 5, 20, 25] |
C | [25, 20, 5, 5, 4, 3, 3, 1] |
D | None of the above |
|