Question: Determine whether each expression below is true, false, or invalid assuming that: int A = 5, B = 6, C = 4; Problem Expression True,
Determine whether each expression below is true, false, or invalid assuming that:
int A = 5, B = 6, C = 4;
| Problem | Expression | True, false, or invalid? |
| 1 | if (A = 5) |
|
| 2 | if (A == 6) |
|
| 3 | if (A) |
|
| 4 | if (1 < B < 3) |
|
| 5 | if (1 < B && B < 3) |
|
| 6 | if(A < C) |
|
| 7 | if(A < C) |
|
| 8 | if(A > 60) |
|
| 9 | if(B % 3 == 0) |
|
| 10 | if(C%3 == 0) |
|
| 11 | if(B%3)) |
|
| 12 | if(!(C%3)) |
|
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
