ExamVeda
Login
Home
Precedence and Associativity
?

What is the result of 2 + 3 * 4 ?

Answer & Solution
Correct Answer: Option A
In Python, arithmetic operations follow precedence rules:

Multiplication (*) has higher precedence than addition (+).

So, the expression 2 + 3 * 4 is evaluated as:

First, perform the multiplication: 3 * 4 = 12

Then, add 2 to the result: 2 + 12 = 14

Therefore, the result of 2 + 3 * 4 is 14.
Examveda
Question posted by Examveda
Community

Join the Discussion

1 Comment
Karan Thanvi
Karan Thanvi 2 years ago
3*4 = 3 + 3 + 3 + 3 =12 and then +2 i.e 14 please check the answer and make it correct.