Programming Language Operator in Java Question #2129
Single Choice Not Set

QWhich 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?

ID: #2129 Operator in Java 2,703 views
Question Info
#2129Q ID
Not SetDifficulty
Operator in JavaTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A 1 < x < 100 || x < 0
  • B ((x < 100) && (x > 1)) || (x < 0)
  • C ((x < 100) && (x > 1)) && (x < 0)
  • D (1 > x > 100) || (x < 0)
Correct Answer

Explanation

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

Share This Question

Challenge a friend or share with your study group.