Question: 11 -
what will be output?
class tester:
def __init__(self, id):
self.id = str(id)
id="224"
>>>temp = tester(12)
>>>print(temp.id)
-
224
-
12
-
error
-
none
Answer:
12
Solution not available.
Question: 12 -
What will be the output of the following Python function?
min(max(False,-3,-4), 2,7)
-
False
-
2
-
-3
-
-4
Answer:
False
Solution not available.
Question: 13 -
which of the follwing is not a keyword in python?
-
pass
-
eval
-
assert
-
non local
Answer:
eval
Solution not available.
Question: 14 -
What will be the output of the following Python code snippet?for i in [1, 2, 3, 4][::-1]:
print (i)
-
4 3 2 1
-
none
-
error
-
1 2 3 4
Answer:
4 3 2 1