0%
0 / 15 answered

if Statements Practice Test

15 Questions
Question
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);

Question Navigator