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) Unpredictable result
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
Q1: What is the correct way to invoke
Q7: What does the following statement sequence print?
Q48: What does the following statement sequence print
Q49: Which one of the following statements displays
Q51: What is the output of the following
Q53: Which one of the following is a
Q54: The assignment operator<br>A)denotes mathematical equality<br>B)places a new
Q57: Which one of the following statements displays
Q70: Which of the following statements with comments
Q106: What happens to the fractional part when