Variable and Comment in Python MCQs Exercise I
Ques 1
Variable and Comment
What is the output of the following code in Python?
var='Small Code'
print(var)
A Error
B SmallCode
C We Cannot initialize
D None of the above
Ques 2
Variable and Comment
What is the output of the following Python Code?
name = "SmallCode"
def change():
name = "SCode"
change()
print(name)
A SmallCode SCode
B SmallCode
C SCode
D Error : name is not defined