GATE CS 2025 (Afternoon) — Question 8

Analytical AptitudeNumerical Relations & Arithmetic LogicMCQ2 marks · −2/3 if wrongMedium

Which one of the following options is correct for the given data in the table?
Iteration (\( i \))0123
Input (\( I \))20-41015
Output (\( X \))20162641
Output (\( Y \))20-80-800-12000
  1. A
    \( X(i) = X(i - 1) + I(i); Y(i) = Y(i - 1)I(i); i > 0 \)
  2. B
    \( X(i) = X(i - 1)I(i); Y(i) = Y(i - 1) + I(i); i > 0 \)
  3. C
    \( X(i) = X(i - 1)I(i); Y(i) = Y(i - 1)I(i); i > 0 \)
  4. D
    \( X(i) = X(i - 1) + I(i); Y(i) = Y(i - 1)I(i - 1); i > 0 \)
Practise the full 2025-AN paper
Challenge a friend: WhatsApp Telegram
Recommended book · affiliate linkDiscrete Mathematics and Its Applications (Rosen)Logic, sets, relations, combinatorics and graph theory, with worked examples.
Practise more on Numerical Relations & Arithmetic LogicTimed, in the real exam interface · free to start

A GATE question every morning

One real past-paper question every morning for your branch, answer hidden until you tap. Free on Telegram.

Join
Stuck? Ask in the student group