Solved

Assuming That a User Enters 64 as His Score, What

Question 56

Multiple Choice

Assuming that a user enters 64 as his score, what is the output of the following code snippet?
Int score = 0;
Scanner in = new Scanner(System.in) ;
System.out.print("Enter your score: ") ;
Score = in.nextInt() ;
If (score < 40)
{
System.out.println("F") ;
}
Else if (score >= 40 || score < 50)
{
System.out.println("D") ;
}
Else if (score >= 50 || score < 60)
{
System.out.println("C") ;
}
Else if (score >= 60 || score < 70)
{
System.out.println("B") ;
}
Else if (score >= 70 || score < 80)
{
System.out.println("B+") ;
}
Else
{
System.out.println("A") ;
}


A) D
B) C
C) B
D) A

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents