Computer Science · Programming Logic
Consider the following conditional code which returns a Boolean value: if ((x > 25) && (y > 100)) return 'false'; else if ((x ≤ 25) && (y ≤ 100)) return 'true'; else if ((x > 25) && (y ≤ 100)) return 'false'; else return 'true'; Simplify it by filling in the blank with a single Boolean expression without changing the behavior of the code: if () return 'true'; else return 'false';
- 1x > 25
- 2x ≤ 25✓
- 3y > 100
- 4y ≤ 100
Correct answer
x ≤ 25
Download Single Question PDF
Save this question and verified answer as a clean study sheet with live clickable link.
Share with Friends & Study Groups
Challenge your peer aspirants on WhatsApp or Telegram to solve this question!
Preparing for Computer Science?
Practice full-length mock tests with real exam timers, instant score analysis, and all-India ranking.
Want more practice questions on Programming Logic?
Solve complete topic-wise tests with detailed solutions on GkGet.
Related Practice Questions
Recommended practice questions in Computer Science · Programming Logic