Solved

Consider the Following Code That Will Assign a Letter Grade

Question 11

Multiple Choice

Consider the following code that will assign a letter grade of 'A', 'B', 'C', 'D', or 'F' depending on a student's test score. if (score >= 90) grade = 'A';
If (score >= 80) grade = 'B';
If (score >= 70) grade = 'C';
If (score >= 60) grade = 'D';
Else grade = 'F';


A) This code will work correctly in all cases.
B) This code will work correctly only if the grade is greater than or equal to 60.
C) This code will work correctly only if the grade is less than 60.
D) This code will work correctly only if the grade is less than 70.
E) This code will not work correctly under any circumstances.

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