Question: 6 -
Python supports the creation of anonymous functions at runtime, using a construct called
-
anonymous
-
pi
-
none
-
lambda
Answer:
lambda
Solution not available.
Question: 7 -
2**(3**2)
(2**3)**2
2**3**2
-
512, 512, 512
-
512, 64, 512
-
64, 64, 64
-
64, 512, 64
Answer:
512, 64, 512
Solution not available.
Question: 8 -
What will be the output of the following Python code snippet if x=1? x<<2
-
8
-
2
-
1
-
4
Answer:
4
Solution not available.
Question: 9 -
What will be the output of the following Python code?i = 1
while True:
if i%3 == 0:
break
print(i)
i + = 1
-
error
-
none
-
1 2 3
-
1 2
Answer:
error
Solution not available.
Question: 10 -
which keyword is used for function in python language?
-
function
-
def
-
define
-
fun
Answer:
def