0%
0 / 15 answered
if Statements Practice Test
•15 QuestionsQuestion
1 / 15
Q1
In a grading system, how does the code handle score = 89?
// Determine pass/fail for a course
int score = 89;
String result = "FAIL";
if (score >= 70) {
result = "PASS";
}
System.out.println(result);
In a grading system, how does the code handle score = 89?
// Determine pass/fail for a course
int score = 89;
String result = "FAIL";
if (score >= 70) {
result = "PASS";
}
System.out.println(result);