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.
- A. Pointer
Why not A: “Pointer” is not correct. 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). Opt
- B. Compilation
Why not B: “Compilation” is not correct. 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). Opt
- C. Function ✓
- D. Interpretation
Why not D: “Interpretation” is not correct. 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). Opt
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
- What is the name for a programming construct that repeats a block of code while a condition is true?
- A technique where a function calls itself to solve smaller instances of a problem. What is this concept called...
- What does Variable refer to?
- Choose the correct description of Recursion.
- Which term refers to a named storage location in memory that holds a value which can change during program exe...
- Which of the following best names the concept in which a classification that specifies what kind of value a va...