Vidyalelo
Python · Q22

Python Operator Precedence: MCQs for Exam Prep

Programming · Python · question 22

Q22

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

A.
9
B.
14
C.
20
Answer
D.
25

Answer: Option C

Solution

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