Question: 1. ) If x = 4, y = 3, and z = 2, determine whether each expression below is true, false, or invalid. Problem Expression
1. ) If x = 4, y = 3, and z = 2, determine whether each expression below is true, false, or invalid.
| Problem | Expression | True, false, or invalid? |
| 1 | if (x) |
|
| 2 | if (x = 4) |
|
| 3 | if (x = = 4) |
|
| 4 | if ((z = 4) > x) |
|
| 5 | if (2 < x < 3) |
|
| 6 | if(k > K) |
|
| 7 | if(J = = 74) |
|
| 8 | if(engine < engineer) |
|
| 9 | if(x % 2 == 0) |
|
| 10 | if(x % 2) |
|
| 11 | if(x < 2 && x < -1 || x < 10) |
|
| 12 | if(x < 2 && (x < -1 || x < 10)) |
|
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
