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?

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?

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?

A.
0

B.
4

C.
5

D.
False

E.
Null

F.
True



Leave a Reply 5

Your email address will not be published. Required fields are marked *


mandisa

mandisa

D is the correct answer which is False

AydinNasirzadeh

AydinNasirzadeh

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.
:/

Fredy

Fredy

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

Jerdine Sabio

Jerdine Sabio

AND statement is a logical expression, so it shouldn’t return an integer as a result, hence the ‘false’ answer.

DB7

DB7

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.