True or False

Assume that a=10, b=5 and c=2, evaluate TRUE or FALSE for the following experssion

1.(6/2)!=0 //TRUE

2.(b-c)==c //FALSE

3.(a++b)AND(a>c) //FALSE

4.(a<b) Or (b<c) //FALSE

5.Not (a<1)And(a>b)

I've given my answer. Cab anyone help em to check it and jelp me with question number 5
On Number five instead of comparing

11 < 1 == false, NOT == opposite so opposite of false is true.
11 > 5 == true

true && true is true.


and technically line 3 shouldn't produce false since it will not compile.

since ++ is the increment. If you are incrementing a then what are you doing with a and b? Adding? Subtracting?


Anyways, you could simply create a program to generate the results for you (to compare with not to provide answers).
Topic archived. No new replies allowed.