CBSE Class 10 Computer Applications
Question 10 of 31
Python Revision — Question 8
Back to all questions 8
Question Question 8
What will be the output of
print 3*2**2
- 81
- 18
- 36
- 12
12
Reason — The given expression 3*2**2 is evaluated as follows:
= 3 * 2 ** 2
= 3 * 4 (Since exponentiation (**) has higher precedence than multiplication (*))
= 12
Thus, 12 is printed as output.