ExamVeda
Login
Home
51
What will be the output of the following Python code?
x = ['ab', 'cd']
print(map(len, x))
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
52
How are required arguments specified in the function heading?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
53
What will be the output of the following Python code?
def check(n):
    if n < 2:
        return n % 2 == 0
    return check(n - 2)
print(check(11))
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
54
What is tail recursion?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
55
What will be the output of the following Python code?
x = ['ab', 'cd']
print(list(map(len, x)))
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
56
What will be the output of the following Python code?
def f():
    global a
    print(a)
    a = "hello"
    print(a) 
a = "world" 
f()
print(a)
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
57
What will be the output of the following Python code?
x=12
def f1(a,b=x):
    print(a,b)
x=15
f1(4)
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
58
What will be the output of the following Python code?
elements = [0, 1, 2]
def incr(x):
    return x+1
print(list(map(elements, incr)))
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
59
What will be the output of the following Python code?
def test(i,j):
    if(i==0):
        return j
    else:
        return test(i-1,i+j)
print(test(4,7))
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
60
What will be the output of the following Python code?
def to_upper(k):
    k.upper()
x = ['ab', 'cd']
print(list(map(to_upper, x)))
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board