Examveda

What is the result of 2 + 3 * 4 ?

A. 14

B. 20

C. 15

D. 10

Answer: Option A

Solution (By Examveda Team)

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.

This Question Belongs to Python Program >> Precedence And Associativity

Join The Discussion

Comments (1)

  1. Karan Thanvi
    Karan Thanvi:
    1 year ago

    3*4 = 3 + 3 + 3 + 3 =12 and then +2 i.e 14 please check the answer and make it correct.

Related Questions on Precedence and Associativity