What is the output of the following code snippet?
Int golfScore = 64;
If (golfScore < 60)
{
System.out.println("Astounding!") ;
}
If (golfScore >= 60 && golfScore < 70)
{
System.out.println("Professional!") ;
}
If (golfScore >= 70 && golfScore < 80)
{
System.out.println("Pretty good!") ;
}
If (golfScore >= 80 && golfScore < 90)
{
System.out.println("Not so hot!") ;
}
If (golfScore >= 90)
{
System.out.println("Keep your day job!") ;
}
A) Astounding!
B) Professional!
C) Pretty good!
D) Keep your day job!
Correct Answer:
Verified
Q56: Which of the following conditions will correctly
Q94: Assuming that the user inputs "twenty" as
Q95: Which of the following conditions tests whether
Q96: What is the output of the following
Q97: Assuming that the valid cost should be
Q100: 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
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