Consider the following code snippet. What is the output?
Int score = 68;
If (score < 50)
{
System.out.print("You need to practice!") ;
}
If (score < 100)
{
System.out.print("Almost respectable!") ;
}
If (score < 150)
{
System.out.print("You hit triple digits!") ;
}
If (score < 250)
{
System.out.print("Impressive!") ;
}
A) You need to practice!
B) Almost respectable!You hit triple digits!
C) You hit triple digits!Impressive!
D) Almost respectable!You hit triple digits!Impressive!
Correct Answer:
Verified
Q87: Assuming that a user enters 45 as
Q88: What is the output of the following
Q90: What is the output of the following
Q91: Assuming that a user enters 50, 70,
Q93: Assuming that a user enters 68 as
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
Q116: Which of the following expressions represents a
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