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
5 Comments on “You need to evaluate the following expression: (A>B) AND (C<D) What is the value of this expression if A”
mandisasays:
D is the correct answer which is False
0
0
AydinNasirzadehsays:
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
Fredysays:
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
Jerdine Sabiosays:
AND statement is a logical expression, so it shouldn’t return an integer as a result, hence the ‘false’ answer.
0
0
DB7says:
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.
D is the correct answer which is False
0
0
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
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
AND statement is a logical expression, so it shouldn’t return an integer as a result, hence the ‘false’ answer.
0
0
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