Examveda

What is the result of 3 + 4 * 5 ?

A. 35

B. 23

C. 27

D. 47

Answer: Option B

Solution (By Examveda Team)

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.

This Question Belongs to Python Program >> Precedence And Associativity

Join The Discussion

Comments (2)

  1. Sayantika Saha
    Sayantika Saha:
    6 months ago

    23 will be the answer

  2. Krishna Kumar
    Krishna Kumar:
    7 months ago

    answer will be 23

Related Questions on Precedence and Associativity