What is the result of 4 + 3 ** 2 % 2 ?
A. 4
B. 5
C. 1
D. 7
Answer: Option B
Solution (By Examveda Team)
Exponentiation has higher precedence, so 3 ** 2 is evaluated first, then modulo, and finally addition.Related Questions on Precedence and Associativity

Join The Discussion