Multiple Choice
What is the output of this code snippet? double average;
Int grade1 = 87;
Int grade2 = 94;
// System.out.print("The average is " + (grade1 + grade2) / 2.0) ;
System.out.print("The average is " + average) ;
A) Compile-time error
B) The average is 91.5
C) The average is 91.5 The average is 91.5
D) The average is 91.5 The average is 0.0
Correct Answer:

Verified
Correct Answer:
Verified
Q16: How do you compute the length of
Q35: The first step in problem solving is<br>A)To
Q53: Which one of the following statements displays
Q92: What is the difference between the result
Q93: What are the values of num1 and
Q94: Which of the following statements places input
Q95: Given the definition final double PI
Q99: What is the output of the following
Q100: Which of the following is the mathematical
Q101: Assume the following variables have been declared