Exam-style question
Try this first
Which pair best describes the two essential parts of a typical recursive solution?.
- A.A base case and a general case
- B.An input statement and an output statement
- C.A loop and an array
- D.A variable declaration and a comment
Answer and explanation
Concise answer
A base case and a general case
Why this is correct
The base case provides a stopping condition. The general case reduces or changes the problem and makes a recursive call.
Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.
Common mistake
No common mistake is linked to this question yet.
