Vidyalelo
Python · Q23

Python Operator Precedence: MCQs for Exam Prep

Programming · Python · question 23

Q23

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

A.
14
Answer
B.
20
C.
16
D.
18

Answer: Option A

Solution

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