Vidyalelo
Python · Q6

Python Operator Precedence: MCQs for Exam Prep

Programming · Python · question 6

Q6

What is the result of 2 * 3 % 4 ?

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

Answer: Option B

Solution

Answer: Option B
Solution:
Multiplication and modulo have the same precedence and are evaluated left to right.