Which one of the following options is correct for the given data in the table?
Topic-wise GATE CS PYQs with verified steps
GATE CSE 2025 Set 2 · Q8
Time

Select one answerSingle correct
Solution
Official answer: A) X(i) = X(i - 1) + I(i); Y(i) = Y(i - 1)I(i); i > 0
Quantitative AptitudeLet us check the relations given in the options for each iteration :
For $X(i)$:
At $i = 1$: $X(1) = 16 = 20 + (-4) = X(0) + I(1)$
At $i = 2$: $X(2) = 26 = 16 + 10 = X(1) + I(2)$
At $i = 3$: $X(3) = 41 = 26 + 15 = X(2) + I(3)$
Thus, the recurrence relation for is:
For $Y(i)$:
At :
At :
At :
Thus, the recurrence relation for is:
Therefore, (A) correctly describes the given data.
Try the question first, then check your work.
Examiner trap
Check how the values of and at iteration depend on the previous values at iteration and the current input .
This Quantitative Aptitude previous year question is Q8 of the GATE CSE 2025 Set 2 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 2025 Set 2 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.