Examveda
Examveda

What is the result of 5 - 2 + 1 ?

A. 2

B. 4

C. -2

D. 3

Answer: Option D

Solution(By Examveda Team)

Addition and subtraction have the same precedence and are evaluated left to right.

This Question Belongs to Python Program >> Precedence And Associativity

Join The Discussion

Related Questions on Precedence and Associativity