Vidyalelo
Python · Q28

Python Operator Precedence: MCQs for Exam Prep

Programming · Python · question 28

Q28

What is the result of 2 ** 3 * 4 ?

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

Answer: Option C

Solution

Answer: Option C
Solution:
Exponentiation and multiplication have the same precedence and are evaluated left to right.