What is the output of the following code snippet?
Int num1 = 40;
If (num1 <= 40)
{
System.out.print("F") ;
}
If (num1 <= 75)
{
System.out.print("C") ;
}
If (num1 <= 90)
{
System.out.print("B") ;
}
A) F
B) C
C) B
D) FCB
Correct Answer:
Verified
Q56: Which of the following conditions will correctly
Q95: Which of the following conditions tests whether
Q96: What is the output of the following
Q97: Assuming that the valid cost should be
Q99: What is the output of the following
Q101: A company applies a discount based on
Q102: What will be printed by the statements
Q104: Which of the following performs the same
Q105: Which of the following conditions tests for
Q111: Which of the following options checks that
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents