Vidyalelo
Python · Q17

Python Operator Precedence: MCQs for Exam Prep

Programming · Python · question 17

Q17

What is the result of 3 + 2 * (5 - 3) ?

A.
11
B.
8
C.
6
Answer
D.
13

Answer: Option C

Solution

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