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
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
D is the correct answer which is False
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.
:/
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
AND statement is a logical expression, so it shouldn’t return an integer as a result, hence the ‘false’ answer.
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.