Vidyalelo
Python · Q11

Python Operator Precedence: MCQs for Exam Prep

Programming · Python · question 11

Q11

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

A.
5
B.
3
C.
6
Answer
D.
10

Answer: Option C

Solution

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