PRASHNIKAप्रश्निका
‹ Back to the paper

Recursion utilises more memory as compared to iteration.

Computer Science20251 markAssertion-reason

Assertion: Recursion utilises more memory as compared to iteration.

Reason: Absence of base case leads to infinite recursion.

  • aBoth A and R are true, and R is the correct explanation of A.
  • bBoth A and R are true, and R is not the correct explanation of A.
  • cA is true, but R is false.
  • dA is false, but R is true.

Answer

Answer

AI

Correct option: b

Answer: (b) Both A and R are true, but R is not the correct explanation of A. Both statements are true: recursion does use more memory than iteration because each call adds a stack frame, and a missing base case does cause infinite recursion. But R explains why recursion without a base case fails to terminate, not why recursion in general (even with a base case) uses more memory than iteration, so R does not explain A.
Recursion

From ISC Computer Science - Competency Focused Practice Questions (CISCE, August 2024), question 21.