Teaching UGC NET Mock Test Series 2025 (Paper 1 & 2) Programming and Data Structure Programming in C
Consider the following conditional code, which returns a Boolean values
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 following blank with a single Boolean expression without changing the behaviour of the conditional code.
if (__________)
return 'true';
else
return 'false';
1
x > 25
2
x ≤ 25
3
y >100
4
y ≤ 100