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
Q72: Which is a legal number literal of
Q73: What is the output of the following
Q74: What is the value of Math.pow(2, 3)?<br>A)5.0<br>B)6.0<br>C)8.0<br>D)9.0
Q75: Which one of the following is an
Q76: Which is a correct representation of the
Q78: Which option represents the best choice for
Q79: A student's class average can be computed
Q80: Which of the following statements about constants
Q81: Which one of the following statements can
Q82: What is wrong with the following code?<br>int