What is the order of evaluation in the following expression: (3)
(i) a>b or b<=d ?
(ii) X==Y and Y>=M ?
(iii) a > b < c > d
Answers
Answer:
greater than or equal to. >= Equal to. == Not Equal to != a - b < 0 is equivalent to. (a - b) < ... 5.9 is less than or equal to 7.5 true ... x + 3.3) k != -2 y == 2 * z -5. Not Valid a =< b. // out of order a < = b ... In C++, there are three logical (Boolean) operators: ... following expressions: a > b. a != b. d % b == c % b. a * c != d * b.
Explanation:
For example, 1 + 2 * 3 is treated as 1 + (2 * 3), whereas 1 * 2 + 3 is treated ... For example x = y = z = 17 is treated as x = (y = (z = 17)), leaving all three ... Associativity and precedence determine in which order Java applies ... So, for example in the expression A() + B() * C(D(), E()), the ... 0 || year % 400 == 0 ..
Answer:
Here they have asked the order of the following expression .
Explanation:
(I) First they have asked a >b or b<=d
here the order has changed the correct answer for this question is b<=d or a>b
(ll) In second they have asked x==y and y>=m
here the correct answer is y>=m and x==y
(lll) I think the third one has given correct
Hope u like this answer