ExamVeda
Login
Home
Precedence and Associativity
?

What is the result of 3 + 4 * 5 ?

Answer & Solution
Correct Answer: Option B
In Python, expressions are evaluated according to operator precedence, which determines the order in which operations are performed.

The multiplication operator (*) has higher precedence than the addition operator (+).

Therefore, in the expression 3 + 4 * 5, the multiplication is performed first.

First step: 4 * 5 = 20

Second step: 3 + 20 = 23

Thus, the final result of the expression is 23.

Hence, the correct answer is Option B: 23.
Examveda
Question posted by Examveda
Community

Join the Discussion

2 Comments
Sayantika Saha
Sayantika Saha 7 months ago
23 will be the answer
Krishna Kumar
Krishna Kumar 9 months ago
answer will be 23