What is a recursive function?

This question was previously asked in
RRB JE ECE 22 Apr 2025 Shift 1 CBT 2 Official Paper
View all RRB JE Papers >
  1. A function that calls itself
  2. A function that calls other functions
  3. A function without parameters
  4. A function without a return type

Answer (Detailed Solution Below)

Option 1 : A function that calls itself
Free
General Science for All Railway Exams Mock Test
20 Qs. 20 Marks 15 Mins

Detailed Solution

Download Solution PDF

The correct answer is: A function that calls itself

Additional Information

A recursive function is a function that calls itself in order to solve a problem by breaking it down into smaller sub-problems. This self-referential calling continues until a base case is reached, which stops the recursion. 

Key Components of Recursion:
1) Base Case

  • A condition that stops the recursion.
  • Without a base case, the function would call itself infinitely, leading to a stack overflow.

2) Recursive Case

  • The part where the function calls itself with a modified input, moving closer to the base case.

Latest RRB JE Updates

Last updated on Jun 7, 2025

-> RRB JE CBT 2 answer key 2025 for June 4 exam has been released at the official website.

-> Check Your Marks via RRB JE CBT 2 Rank Calculator 2025

-> RRB JE CBT 2 admit card 2025 has been released. 

-> RRB JE CBT 2 city intimation slip 2025 for June 4 exam has been released at the official website.

-> RRB JE CBT 2 Cancelled Shift Exam 2025 will be conducted on June 4, 2025 in offline mode. 

-> RRB JE CBT 2 Exam Analysis 2025 is Out, Candidates analysis their exam according to Shift 1 and 2 Questions and Answers.

-> The RRB JE Notification 2024 was released for 7951 vacancies for various posts of Junior Engineer, Depot Material Superintendent, Chemical & Metallurgical Assistant, Chemical Supervisor (Research) and Metallurgical Supervisor (Research). 

-> The selection process includes CBT 1, CBT 2, and Document Verification & Medical Test.

-> The candidates who will be selected will get an approximate salary range between Rs. 13,500 to Rs. 38,425.

-> Attempt RRB JE Free Current Affairs Mock Test here

-> Enhance your preparation with the RRB JE Previous Year Papers

Hot Links: teen patti jodi teen patti download teen patti real teen patti classic teen patti gold old version