Which of the following is the correct expression that evaluates to true if the number x is between 1 and 100 or the number is negative?

Question:
Which of the following is the correct expression that evaluates to true if the number x is between 1 and 100 or the number is negative?

1.(1 > x > 100) || (x < 0)

2.1 < x < 100 || x < 0

3.((x < 100) && (x > 1)) || (x < 0)

4.((x < 100) && (x > 1)) && (x < 0)

Posted Date:-2021-10-25 05:21:08


More MCQS Questions and answers

Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!