Vidyalelo
Python · Q32

Python Operator Precedence: MCQs for Exam Prep

Programming · Python · question 32

Q32

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

A.
14
Answer
B.
16
C.
10
D.
24

Answer: Option A

Solution

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