The GATE Grind

GATE 2025 MT – Question 8

General Aptitude · Analytical Aptitude: Logical Reasoning and Deduction · 2 marks · Multiple choice

Which option is correct for the data below?

Iteration $i$0123
Input $I$20−41015
Output $X$20162641
Output $Y$20−80−800−12000
  1. $X(i)=X(i-1)+I(i);\ Y(i)=Y(i-1)I(i);\ i>0$
  2. $X(i)=X(i-1)I(i);\ Y(i)=Y(i-1)+I(i);\ i>0$
  3. $X(i)=X(i-1)I(i);\ Y(i)=Y(i-1)I(i);\ i>0$
  4. $X(i)=X(i-1)+I(i);\ Y(i)=Y(i-1)I(i-1);\ i>0$

Practise this question in The GATE Grind →

Show answer and explanation

Correct answer: (A) $X(i)=X(i-1)+I(i);\ Y(i)=Y(i-1)I(i);\ i>0$

Explanation

The X values successively add the current input: 20−4=16, 16+10=26, 26+15=41. The Y values multiply by the current input: 20(−4)=−80, then −800, then −12000. These are exactly the recurrences in **A**.