Examveda

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.

This Question Belongs to Python Program >> Precedence And Associativity

Join The Discussion

Related Questions on Precedence and Associativity