Question 38Asked in DSSSB TGT Computer Science (Technical), 13 Sep 2025, Shift 3 (5:00 PM)

What is required to write a recursive function?

  1. AOnly a recursive call
  2. BA loop and a return statement
  3. CA pointer variable
  4. DA base condition and a recursive call
Show answerHide answer

Correct answer: (D) A base condition and a recursive call

Explanation

A recursive function needs a base condition to stop and a recursive call that moves toward that base case. Without a base case the recursion never ends.

From DSSSB TGT Computer Science PYQ (Technical), 13 Sep 2025, Shift 3 (5:00 PM)

This is question 38 of DSSSB TGT Computer Science PYQ (Technical), 13 Sep 2025, Shift 3 (5:00 PM). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.