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
Related Questions
Q21: The execution of a break statement in
Q22: Based on the code above, what is
Q23: Suppose x = 10 and y =
Q24: In Java, case and switch are reserved
Q25: The output of the Java code: int
Q27: In a _ control structure, the computer
Q28: Based on the code above, what is
Q29: Based on the code above, which part
Q30: Which of the following is not a
Q31: Which of the following is NOT a