IlIl. (8 points, 2 points each) Evaluate each expression and circle T for TRUE a
ID: 3909839 • Letter: I
Question
IlIl. (8 points, 2 points each) Evaluate each expression and circle T for TRUE and F for FALSE IV. (6 points, 2 points each) switch (id) case 1: System.out.printin("Janet"); break; case 2: System.out.printin("Mark"); case 3: case 5: System.out.printin( Jerry"); break default: System.out. printin("Sue"); a. What will the code display when the id variable contains the number 2? b. What will the code display when the id variable contains the number 4? c. What will the code display when the id variable contains the number 3?Explanation / Answer
3.
a) T and not(F and T) => T and T => T
b) F and F or T => F or T => T
c) not (T or T) => F
d) T or F => T
4.
a) Mark
Jerry
b) Sue
c) Jerry