Solved

Which of the Following Is the Correct Boolean Expression to Test

Question 18

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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions