Skip to content

Programming Concepts

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.

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

More Programming Concepts MCQs