Q. 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?

  • (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)
πŸ’¬ Discuss
βœ… Correct Answer: (B) ((x < 100) && (x > 1)) || (x < 0)

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
314
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Shivam
Publisher
πŸ“ˆ
88%
Success Rate