63.9k views
0 votes
What value will be stored in the Boolean variable t after each of the following statements executes?

A) t = (12 > 1);
B) t = (2 < 0);

C) t = (5 == (3 * 2)); D) t = (5 == 5);

User Waverick
by
4.4k points

1 Answer

4 votes

Answer:

A) True

B) False

C) False

D) True

Step-by-step explanation:

In the following expressions we are evaluating whether a value is greater than (>), less than (<) or equal (==) to another value.

A) The expression is pointing out that 12 is greater than 1, which is True.

B) The expression is pointing out that 2 is less than 0, which is False

C) The expression is pointing out that 5 is equal to (3*2); 3*2=6 therefore 5 is not equal to 6. The answer is False

D) The expression is pointing out that 5 is equal to 5, which is True.

User AkshayBandivadekar
by
5.0k points