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

PYQ GATE 2025

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}

  1. A.

    𝑋(𝑖)=𝑋(𝑖−1)+𝐼(𝑖);𝑌(𝑖)=𝑌(𝑖−1)𝐼(𝑖);𝑖>0𝑋(𝑖) = 𝑋(𝑖 − 1) + 𝐼(𝑖); 𝑌(𝑖) = 𝑌(𝑖 − 1)𝐼(𝑖); 𝑖 > 0

  2. B.

    𝑋(𝑖)=𝑋(𝑖−1)𝐼(𝑖);𝑌(𝑖)=𝑌(𝑖−1)+𝐼(𝑖);𝑖>0𝑋(𝑖) = 𝑋(𝑖 − 1)𝐼(𝑖); 𝑌(𝑖) = 𝑌(𝑖 − 1) + 𝐼(𝑖); 𝑖 > 0

  3. C.

    𝑋(𝑖)=𝑋(𝑖−1)𝐼(𝑖);𝑌(𝑖)=𝑌(𝑖−1)𝐼(𝑖);𝑖>0𝑋(𝑖) = 𝑋(𝑖 − 1)𝐼(𝑖); 𝑌(𝑖) = 𝑌(𝑖 − 1)𝐼(𝑖); 𝑖 > 0

  4. D.

    𝑋(𝑖)=𝑋(𝑖−1)+𝐼(𝑖);𝑌(𝑖)=𝑌(𝑖−1)𝐼(𝑖−1);𝑖>0𝑋(𝑖) = 𝑋(𝑖 − 1) + 𝐼(𝑖); 𝑌(𝑖) = 𝑌(𝑖 − 1)𝐼(𝑖 − 1); 𝑖 > 0

Attempted by 50 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…