πŸ“Š JAVA
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
πŸ’¬ Discuss
βœ… Correct Answer: (B) PASS

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
255
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
82%
Success Rate