Skip to content

Programming Concepts

Identify the correct concept described as: a reusable block of code that performs a specific task and can be called with different inputs.

Difficulty: Easy

About this MCQ

This Easy Programming Concepts MCQ checks one syllabus fact.

The question is: “Identify the correct concept described as: a reusable block of code that performs a specific task and can be called with different inputs.”

The accepted answer is C. Function. “Identify the correct concept described as: a reusable block of code that performs a specific task and can be called with different inputs.” is answered by Function (option C). Option A (“Pointer”) does not match the stem; it is a near-miss used to catch incomplete recall of Function. Option B (“Compilation”) does not match the stem; it is a near-miss used to catch incomplete recall of Function. Remaining alternatives (Interpretation) fall outside the same rule and should be eliminated once Function 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

C. Function

Explanation

“Identify the correct concept described as: a reusable block of code that performs a specific task and can be called with different inputs.” is answered by Function (option C). Option A (“Pointer”) does not match the stem; it is a near-miss used to catch incomplete recall of Function. Option B (“Compilation”) does not match the stem; it is a near-miss used to catch incomplete recall of Function. Remaining alternatives (Interpretation) fall outside the same rule and should be eliminated once Function 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