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}Iteration (i)Input (I)Output (X)Output (Y)02020201-416-8021026-80031541-12000
𝑋(𝑖)=𝑋(𝑖−1)+𝐼(𝑖);𝑌(𝑖)=𝑌(𝑖−1)𝐼(𝑖);𝑖>0𝑋(𝑖) = 𝑋(𝑖 − 1) + 𝐼(𝑖); 𝑌(𝑖) = 𝑌(𝑖 − 1)𝐼(𝑖); 𝑖 > 0X(i)=X(i−1)+I(i);Y(i)=Y(i−1)I(i);i>0
𝑋(𝑖)=𝑋(𝑖−1)𝐼(𝑖);𝑌(𝑖)=𝑌(𝑖−1)+𝐼(𝑖);𝑖>0𝑋(𝑖) = 𝑋(𝑖 − 1)𝐼(𝑖); 𝑌(𝑖) = 𝑌(𝑖 − 1) + 𝐼(𝑖); 𝑖 > 0X(i)=X(i−1)I(i);Y(i)=Y(i−1)+I(i);i>0
𝑋(𝑖)=𝑋(𝑖−1)𝐼(𝑖);𝑌(𝑖)=𝑌(𝑖−1)𝐼(𝑖);𝑖>0𝑋(𝑖) = 𝑋(𝑖 − 1)𝐼(𝑖); 𝑌(𝑖) = 𝑌(𝑖 − 1)𝐼(𝑖); 𝑖 > 0X(i)=X(i−1)I(i);Y(i)=Y(i−1)I(i);i>0
𝑋(𝑖)=𝑋(𝑖−1)+𝐼(𝑖);𝑌(𝑖)=𝑌(𝑖−1)𝐼(𝑖−1);𝑖>0𝑋(𝑖) = 𝑋(𝑖 − 1) + 𝐼(𝑖); 𝑌(𝑖) = 𝑌(𝑖 − 1)𝐼(𝑖 − 1); 𝑖 > 0X(i)=X(i−1)+I(i);Y(i)=Y(i−1)I(i−1);i>0
Attempted by 50 students.
Sign up free to check your answer
Question 2 of 3 Q6319 in PYQ Questions (Recurrence Relations and Fibonacci-Type Sequences).
Explore the full course: Aptitude For Gate