Vidyalelo
Python · Q49

Python Operator Precedence: MCQs for Exam Prep

Programming · Python · question 49

Q49

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

A.
1
Answer
B.
3
C.
2
D.
27

Answer: Option A

Solution

Answer: Option A
Solution:
Exponentiation has higher precedence, so 3 ** 2 is evaluated first, then floor division.