Sunday 13 December 2015

Q13,p2,J15. Given that x=7.5. j=-1.0,n=1.0 m=2.0 the value of --x+j==x>n>=m is:

A)0                        B)1                                           C)2                                      D)3.
Explanation.

--(x)+-1.0==7.5>1>=2.
5.5==7.5>0 (as 1>=2 is false).
6.5==1.(as 7.5>0).
6.5==1 is false.

1 comment:

  1. == comparison give only two result either true or false it means 0 or 1.

    ReplyDelete

Note: only a member of this blog may post a comment.