ExamVeda
Login
Home
71
What is the output of the following code:
square = lambda x: x**2
result = square(5)
print(result)
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
72
What will be the output of the following Python code?
lamb = lambda x: x ** 3
print(lamb(5))
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
73
What will be the output of the following Python code?
x = [12, 34]
print(len(list(map(int, x))))
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
74
What will be the output of the following Python code?
x = ['ab', 'cd']
print(list(map(upper, x)))
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
75
What will be the output of the following Python code?
x = 'abcd'
print(list(map([], x)))
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
76
What will be the output of the following Python code?
def f(x, y, z): return x + y + z
f(2, 30, 400)
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
77
What will be the output of the following Python code?
x = 50
def func():
    global x
    print('x is', x)
    x = 2
    print('Changed global x to', x)
func()
print('Value of x is', x)
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
78
How many keyword arguments can be passed to a function in a single function call?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
79
What is the purpose of the assert statement in Python?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
80
Only problems that are recursively defined can be solved using recursion.
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board