ExamVeda
Login
Home
81
What is a variable defined inside a function referred to as?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
82
What will be the output of the following Python code?
x = [[0], [1]]
print((' '.join(list(map(str, x))),))
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
83
What will be the output of the following Python code?
def foo(i, x=[]):
    x.append(x.append(i))
    return x
for i in range(3):
    y = foo(i)
print(y)
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
84
What will be the output of the following Python code?
def foo(k):
    k = [1]
q = [0]
foo(q)
print(q)
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
85
What will be the output of the following Python code?
x = [12, 34]
print(len(''.join(list(map(int, x)))))
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
86
On assigning a value to a variable inside a function, it automatically becomes a global variable.
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
87
Which of the following data structures is returned by the functions globals() and locals()?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
88
What will be the output of the following Python code?
def power(x, y=2):
    r = 1
    for i in range(y):
       r = r * x
    return r
print power(3)
print power(3, 3)
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
89
Does Lambda contains return statements?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
90
What will be the output of the following Python code?
l=[-2, 4]
m=map(lambda x:x*2, l)
print(m)
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board