Vidyalelo
Python · Q31

Python Operator Precedence: MCQs for Exam Prep

Programming · Python · question 31

Q31

What is the result of 3 + 2 * 4 ** 2 ?

A.
19
B.
29
Answer
C.
35
D.
59

Answer: Option B

Solution

Answer: Option B
Solution:
Exponentiation has higher precedence, so 4 ** 2 is evaluated first, then multiplication and addition follow.