1.
- true
- false
Q1: Given the following, what value is stored in variable
answer
? int x = 5;
int y = 3;
int z = 1;
boolean answer;
answer = x <= z;
answer
? int x = 5;
int y = 3;
int z = 1;
boolean answer;
answer = x <= z;
answer
? int x = 5;
int y = 3;
int z = 1;
boolean answer;
answer = y >= z;
answer
? int x = 5;
int y = 3;
int z = 1;
boolean answer;
answer = x > z + y;
answer
? int x = 5;
int y = 3;
int z = 1;
boolean answer;
answer = z < y - z;
answer
? int x = 5;
int y = 3;
int z = 1;
boolean answer;
answer = ((x * y) + (x * z)) != ((z * x) + (y * x));