Vidyalelo
Python · Q36

Python Operator Precedence: MCQs for Exam Prep

Programming · Python · question 36

Q36

What is the result of 10 / (2 + 3) ?

A.
2
B.
1.5
Answer
C.
5
D.
0

Answer: Option B

Solution

Answer: Option B
Solution:
Parentheses have the highest precedence, so the expression inside them is evaluated first.