If Statement Exercises Part 1
A condition evaluates to either _________ or ________
What will the following conditions evaluate to?
int A = 10, B = -2, C = 0, D = 8;
bool Married = false;
Number | Condition | Evaluates to |
1. | (A > B) | |
2. | (C < 8) | |
3. | (B >= A - 12) | |
4. | (D / 2 == A - 3) | |
5. | (A % 4 != B) | |
6. | (D = A * 2) | |
7. | (C-B <= A-D) | |
8. | ((D * 2)%5 == C + 1) | |
9. | ((A + B)*C - D >= B * 2 + C) | |
10. | (C != (D - A) * B * -1) | |
11. | (Married) |