0%
0 / 3 answered
Evaluating Boolean Expressions Practice Test3 Questions
Question
1 / 3
Q1

Consider the following code:

int a = 14;

int b = -15;

int c = 22;

int d = 11;

if(a > 12 && b < -14 && c < d) {

System.out.println("YAY!!!!");

} else if (d - 20 < b) {

System.out.println("GO DO MORE PROGRAMMING!");

} else if(a + 12 >= c) {

System.out.println("This is vexing......");

} else {

System.out.println("This is very fun!");

}}

What is the output for the code above?

Question Navigator