Solved

What Is the Output of This Code Snippet

Question 52

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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions