Vidyalelo
Python · Q40

Python Operator Precedence: MCQs for Exam Prep

Programming · Python · question 40

Q40

What is the result of 5 / 2 // 2 ?

A.
2.0
B.
2
C.
1
Answer
D.
1.0

Answer: Option C

Solution

Answer: Option C
Solution:
Division and floor division have the same precedence and are evaluated left to right.