ExamVeda
Login
Home
61
What will be the output of the following Python code?
def foo(k):
    k[0] = 1
q = [0]
foo(q)
print(q)
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
62
What will be the output of the following Python code?
l=[2, 3, [4, 5]]
l2=l.copy()
l2[0]=88
l
l2
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
63
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 D
No explanation is given for this question. Let's Discuss on Board
64
What will be the output of the following Python code?
x = [12.1, 34.0]
print(' '.join(list(map(str, x))))
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
65
Which is the most appropriate definition for recursion?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
66
What will be the output of the following Python code?
x=1
def cg():
	global x
	x=x+1	
cg()
x
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
67
What will be the output of the following Python code?
e="butter"
def f(a): print(a)+e
f("bitter")
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?
def change(one, *two):
   print(type(two))
change(1,2,3,4)
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
69
In . . . . . . . . copy, the base address of the objects are copied. In . . . . . . . . copy, the base address of the objects are not copied.
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
70
What is called when a function is defined inside a class?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board