Multiple Choice
Which of the following is the correct boolean expression to test for: int x being a value less than or equal to 500 or greater than 650, and int y not equal to 1000?
A) ((x >= 500 && x <650) && (y != 1000) )
B) ((x <= 500 OR x > 650) AND !(y.equal(1000) ) )
C) ((x >= 500 || x < 650) || (y != 1000) )
D) ((x <= 500 || x > 650) && !(y == 1000) )
Correct Answer:

Verified
Correct Answer:
Verified
Q1: The System.out.printf method formats a string and
Q13: What will be the values of ans,
Q14: What would be the value of discountRate
Q15: What would be the value of bonus
Q16: A block of code is enclosed in
Q17: What will be the values of ans,
Q19: What would be the value of discountRate
Q21: In an if/else statement, if the boolean
Q22: What will be printed when the following
Q23: What does the following code display?<br>Double x