PrepAway - Latest Free Exam Questions & Answers

You need to evaluate the following expression: (A>B) AND (C<D) What is the value of this expression if A

You need to evaluate the following expression:
(A>B) AND (C<D)
What is the value of this expression if A=3, B=4, C=4, and D=5?

PrepAway - Latest Free Exam Questions & Answers

A.
0

B.
4

C.
5

D.
False

E.
Null

F.
True

5 Comments on “You need to evaluate the following expression: (A>B) AND (C<D) What is the value of this expression if A

  1. AydinNasirzadeh says:

    Guys,
    Do not you think there should be two answers (A and D) since they are pretty the same?
    Personally, if I encountered this quest in an exam, I would choose those two above.
    :/




    0



    0
    1. Fredy says:

      According to microsoft documentation the bool type can be of two types true or false, zero is homologous to false in certain cases but here the correct answer is false




      0



      0
  2. DB7 says:

    THe expression results in a boolean value, not integer. THus, false is correct as A is not greater than B, and since both comparisons must be true to equal a result of true, false is correct.




    0



    0

Leave a Reply