The expression ((x+y)-|x-y|)/(2) is equal to
Topic-wise GATE CS PYQs with verified steps
GATE CSE 2017 Set 1 · Q63
Time
Select one answerSingle correct
Solution
Official answer: B) the minimum of x and y
Quantitative AptitudeConsider the two cases based on the values of and :
Case 1:
Then .
Substituting into the expression:
Case 2:
Then .
Substituting into the expression:
In both cases, the expression evaluates to the minimum of and .
*(Note: Conversely, ).*
Try the question first, then check your work.
Examiner trap
Evaluate the expression for the two cases: and .
This Quantitative Aptitude previous year question is Q63 of the GATE CSE 2017 Set 1 paper. Find more GATE CSE PYQs on Quantitative Aptitude in General Aptitude, or browse all GATE CSE PYQs.
Free diagnostic
Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related Quantitative Aptitude PYQs now with no account.
An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.
Quantitative Aptitude has 53 GATE CSE PYQs across 13 papers from 2011 to 2026. 27 of them are 2-mark MCQs like this one, and GATE CSE 2017 Set 1 has 4.
How GATE tests Quantitative AptitudeIndependent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.