Solved

What Is the Output of the Following Piece of Code

Question 10

Multiple Choice

What is the output of the following piece of code?
#mod1
Def change(a) :
B=[x*2 for x in a]
Print(b)
#mod2
Def change(a) :
B=[x*x for x in a]
Print(b)
From mod1 import change
From mod2 import change
#mains=[1,2,3]
Change(s)


A) [2,4,6].
B) [1,4,9].
C) [2,4,6]
D) There is a name clash

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions