Solved

What Is the Output of This Code Snippet? Double Average;

Question 12

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:

verifed

Verified

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

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents