A

Admin • 828.43K Points
Coach

Q. What is the output of the Java program with IF-ELSE-IF statements?

Code:
int marks=55;
if(marks >= 80)
System.out.println("DISTINCTION");
else if(marks >=35)
System.out.println("PASS");
else
System.out.println("FAIL");
  • (A) DISTINCTION
  • (B) PASS
  • (C) FAIL
  • (D) Compiler error
  • Correct Answer - Option(B)
  • Views: 8
  • Filed under category Java
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.