Solved

Which of the Following Is the Correct Boolean Expression to Test

Question 30

Multiple Choice

Which of the following is the correct boolean expression to test for: int x being a value between, but not including, 500 and 650, or int y not equal to 1000?


A) ((x >= 500 && x <= 650) && (y != 1000) )
B) ((x > 500 AND x < 650) OR !(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