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))

c. ((x > 500 && x < 650) || (y != 1000))

Computer Science & Information Technology

You might also like to view...

The ________ tab displays the programs that begin automatically when you turn on a computer

A) System B) Services C) Startup D) Boot

Computer Science & Information Technology

The network management is concerned about intrusion problems. The network administrator recommends intrusion detection be placed on the network. This will do which of the following? (Select all that apply.)

A) This system will monitor data packets passing through the network and identify potential attacks. B) This system will provide IP address information of all possible threats in the network. C) This system will cut down any unnecessary TCP data traffic and convert it to UDP. D) This system will potentially catch ongoing attacks.

Computer Science & Information Technology