Multiple Choice
After the execution of the following code, what will be the value of num if the input values are 0 3? (Assume that console is a Scanner object initialized to the standard input device.) int num = console.nextInt() ;if (num > 0)
Num = num + 13;
Else
If (num >= 3)
Num = num + 15;
A) 0
B) 3
C) 13
D) 15
Correct Answer:

Verified
Correct Answer:
Verified
Q11: Suppose P and Q are logical expressions.
Q12: The expression 'A' <= 'B' evaluates to
Q16: Suppose that you have the following code.
Q25: The output of the Java code: int
Q32: Suppose str1 and str2 are String variables.
Q33: When one control statement is located within
Q37: What is the output of the following
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
Q46: What is the output of the following
Q50: The method compareTo is part of the