A technique where a function calls itself to solve smaller instances of a problem. What is this concept called?
Difficulty: Medium
About this MCQ
This Medium Programming Concepts MCQ checks one syllabus fact.
The question is: “A technique where a function calls itself to solve smaller instances of a problem. What is this concept called?”
The accepted answer is A. Recursion. “A technique where a function calls itself to solve smaller instances of a problem. What is this concept called” is answered by Recursion (option A). Option B (“Compilation”) does not match the stem; it is a near-miss used to catch incomplete recall of Recursion. Option C (“Static typing”) does not match the stem; it is a near-miss used to catch incomplete recall of Recursion. Remaining alternatives (Data type) fall outside the same rule and should be eliminated once Recursion is identified. Programming Concepts questions of this type reward precise definitions rather than approximate associations. Programming Concepts recall of this distinction is a regular item in FPSC, PPSC, NTS, and CSS papers.
- A. Recursion ✓
- B. Compilation
Why not B: “Compilation” is not correct. The accepted answer is A. Recursion. “A technique where a function calls itself to solve smaller instances of a problem. What is this concept called” is answered by Recursion (option A). Option B (“Compilation”) does
- C. Static typing
Why not C: “Static typing” is not correct. The accepted answer is A. Recursion. “A technique where a function calls itself to solve smaller instances of a problem. What is this concept called” is answered by Recursion (option A). Option B (“Compilation”) does
- D. Data type
Why not D: “Data type” is not correct. The accepted answer is A. Recursion. “A technique where a function calls itself to solve smaller instances of a problem. What is this concept called” is answered by Recursion (option A). Option B (“Compilation”) does
Correct answer
A. Recursion
Explanation
“A technique where a function calls itself to solve smaller instances of a problem. What is this concept called” is answered by Recursion (option A). Option B (“Compilation”) does not match the stem; it is a near-miss used to catch incomplete recall of Recursion. Option C (“Static typing”) does not match the stem; it is a near-miss used to catch incomplete recall of Recursion. Remaining alternatives (Data type) fall outside the same rule and should be eliminated once Recursion is identified. Programming Concepts questions of this type reward precise definitions rather than approximate associations. Programming Concepts recall of this distinction is a regular item in FPSC, PPSC, NTS, and CSS papers.
Source: Programming Concepts Official Reference Guide
Tags: computer science, programming, coding basics, software development
Submitted by: MCQsHub Editorial
Related MCQs
- Identify the correct concept described as: a reusable block of code that performs a specific task and can be c...
- Which of the following best names the concept in which a classification that specifies what kind of value a va...
- Which of the following best describes Loop?
- What is the function or purpose of Data type?
- What is the name for a programming construct that repeats a block of code while a condition is true?
- The concept in which the process of translating source code written in a high-level language into machine code...