Skip to content
Official PYQ · 2025

GATE CS 2025 Set 2 Q8 — General Aptitude

Explain with AI

Which one of the following options is correct for the given data in the table?

Iteration (i)0123Input (I)20-41015Output (X)20162641Output (Y)20-80-800-12000\begin{array}{|c|c|c|c|c|} \hline \text{Iteration (i)} & \text{0} & \text{1} & \text{2} & \text{3} \\ \hline \text{Input (I)} & \text{20} & \text{-4} & \text{10} & \text{15} \\ \hline \text{Output (X)} & \text{20} & \text{16} & \text{26} & \text{41} \\ \hline \text{Output (Y)} & \text{20} & \text{-80} & \text{-800} & \text{-12000} \\ \hline \end{array}

Choose one option
View worked solution

Answer: A

To find the correct relation, we can test the options by substituting the values for i>0i > 0 from the given table.

Step 1: Verify the relation for X(i)X(i)

Let us test the relation X(i)=X(i−1)+I(i)X(i) = X(i-1) + I(i) for i=1,2,3i = 1, 2, 3:

  • For i=1i = 1: X(1)=X(0)+I(1)=20+(−4)=16X(1) = X(0) + I(1) = 20 + (-4) = 16 This matches the table value X(1)=16X(1) = 16.
  • For i=2i = 2: X(2)=X(1)+I(2)=16+10=26X(2) = X(1) + I(2) = 16 + 10 = 26 This matches the table value X(2)=26X(2) = 26.
  • For i=3i = 3: X(3)=X(2)+I(3)=26+15=41X(3) = X(2) + I(3) = 26 + 15 = 41 This matches the table value X(3)=41X(3) = 41.

Thus, the relation X(i)=X(i−1)+I(i)X(i) = X(i-1) + I(i) is correct.

Step 2: Verify the relation for Y(i)Y(i)

Let us test the relation Y(i)=Y(i−1)×I(i)Y(i) = Y(i-1) \times I(i) for i=1,2,3i = 1, 2, 3:

  • For i=1i = 1: Y(1)=Y(0)×I(1)=20×(−4)=−80Y(1) = Y(0) \times I(1) = 20 \times (-4) = -80 This matches the table value Y(1)=−80Y(1) = -80.
  • For i=2i = 2: Y(2)=Y(1)×I(2)=−80×10=−800Y(2) = Y(1) \times I(2) = -80 \times 10 = -800 This matches the table value Y(2)=−800Y(2) = -800.
  • For i=3i = 3: Y(3)=Y(2)×I(3)=−800×15=−12000Y(3) = Y(2) \times I(3) = -800 \times 15 = -12000 This matches the table value Y(3)=−12000Y(3) = -12000.

Thus, the relation Y(i)=Y(i−1)×I(i)Y(i) = Y(i-1) \times I(i) is also correct.

Conclusion

Both relations in Option A match the given data perfectly.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore General Aptitude questions