CBSE Class 11 Informatics Practices Question 34 of 75

Conditional and Looping Constructs — Question 6

Back to all questions
6
Question

Question 4(c)

Give the output of the following when num1 = 4, num2 = 3, num3 = 2.

num1 **= num2 + c
print (num1)
Answer

There is an error in the given code because the variable c is not defined. This will raise a NameError at runtime.