Vidyalelo
Python · Q50

Python Operator Precedence: MCQs for Exam Prep

Programming · Python · question 50

Q50

What is the result of 10 / 2 ** 2 * 2 ?

A.
5
Answer
B.
2
C.
10
D.
2.5

Answer: Option A

Solution

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