ExamVeda
Login
Home
61
The output of the following codes are the same.
[x**2 for x in range(10)]
list(map((lambda x:x**2), range(10)))
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
62
What will be the output of the following Python code?
x = [12.1, 34.0]
print(len(' '.join(list(map(str, x)))))
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
63
What is the base case in the Merge Sort algorithm when it is solved recursively?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
64
What will be the output of the following Python code?
x=100
def f1():
    global x
    x=90
def f2():
    global x
    x=80
print(x)
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
65
. . . . . . . . returns a dictionary of the module namespace.
. . . . . . . . returns a dictionary of the current namespace.
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
66
What will be the output of the following Python code?
x = [[0], [1]]
print((' '.join(list(map(str, x)))))
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
67
Which keyword is used for function?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
68
What will be the output of the following Python code?
x = ['ab', 'cd']
print(len(map(list, x)))
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
69
How can you define a function that accepts both positional and keyword arguments?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
70
If a function doesn't have a return statement, which of the following does the function return?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board