Multiple Choice
Suppose that you have the following code:int sum = 0;
Int num = 8;if (num 5)
Sum = num + 15;After this code executes, what is the value of sum?
A) 0
B) 8
C) 15
D) 23
Correct Answer:

Verified
Correct Answer:
Verified
Q9: Suppose that you have the following statements.
Q16: Suppose that you have the following code.
Q24: In Java, case and switch are reserved
Q25: The output of the Java code: int
Q32: Suppose str1 and str2 are String variables.
Q33: When one control statement is located within
Q41: switch (lastInitial)<br>{<br>Case 'A':<br>System.out.println("section 1");<br>Break;<br>Case 'B':<br>System.out.println("section 2");<br>Break;<br>Case 'C':<br>System.out.println("section
Q42: After the execution of the following code,
Q46: What is the output of the following
Q50: The method compareTo is part of the