Vidyalelo
Python · Q14

Python Operator Precedence: MCQs for Exam Prep

Programming · Python · question 14

Q14

What is the result of (8 - 4) * 2 / 4 ?

A.
1
B.
2
Answer
C.
0.5
D.
3

Answer: Option B

Solution

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