Unit 2 · Selection and Iteration
If/Else Tracing
If/Else Tracing MCQ Practice
Question 1 of 15
Answered 0 of 15
Choose one answer.
What is printed by the following code segment?
public class IfElseTracingContext
{
public static void runExample()
{
int score = 70;
if (score > 70)
{
System.out.print("high");
}
else
{
System.out.print("low");
}
}
public static void main(String[] args)
{
runExample();
}
}