1.

The value of the expressions 4/(3*(2-1)) and 4/3*(2-1) is the same.(a) True(b) FalseThe question was asked by my school teacher while I was bunking the class.My question is based upon Precedence and Associativity in portion Precedence and Associativity, Bitwise & Boolean of Python

Answer»

Correct option is (a) True

Easy explanation - Although the PRESENCE of parenthesis does affect the ORDER of precedence, in the case SHOWN above, it is not making a difference. The result of both of these expressions is 1.333333333. HENCE the statement is true.



Discussion

No Comment Found

Related InterviewSolutions