Q6
What is the result of 2 * 3 % 4 ?
A.
0
B.
1
AnswerC.
2
D.
3
Answer: Option B
Solution
Answer: Option B
Solution:
Multiplication and modulo have the same precedence and are evaluated left to right.
Python Operator Precedence: MCQs for Exam Prep
Programming · Python · question 6
Q6
Answer: Option B