What is the name for a programming construct that repeats a block of code while a condition is true?
Difficulty: Easy
About this MCQ
This Easy Programming Concepts MCQ checks one syllabus fact.
The question is: “What is the name for a programming construct that repeats a block of code while a condition is true?”
The accepted answer is A. Loop. Loop is the fact required by “What is the name for a programming construct that repeats a block of code while a condition is true” (option A). Option B (“Interpretation”) does not match the stem; it is a near-miss used to catch incomplete recall of Loop. Option C (“Function”) does not match the stem; it is a near-miss used to catch incomplete recall of Loop. Remaining alternatives (Pointer) fall outside the same rule and should be eliminated once Loop 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. Loop ✓
- B. Interpretation
Why not B: “Interpretation” is not correct. The accepted answer is A. Loop. Loop is the fact required by “What is the name for a programming construct that repeats a block of code while a condition is true” (option A). Option B (“Interpretation”) does not
- C. Function
Why not C: “Function” is not correct. The accepted answer is A. Loop. Loop is the fact required by “What is the name for a programming construct that repeats a block of code while a condition is true” (option A). Option B (“Interpretation”) does not
- D. Pointer
Why not D: “Pointer” is not correct. The accepted answer is A. Loop. Loop is the fact required by “What is the name for a programming construct that repeats a block of code while a condition is true” (option A). Option B (“Interpretation”) does not
Correct answer
A. Loop
Explanation
Loop is the fact required by “What is the name for a programming construct that repeats a block of code while a condition is true” (option A). Option B (“Interpretation”) does not match the stem; it is a near-miss used to catch incomplete recall of Loop. Option C (“Function”) does not match the stem; it is a near-miss used to catch incomplete recall of Loop. Remaining alternatives (Pointer) fall outside the same rule and should be eliminated once Loop 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
- Which term refers to a named storage location in memory that holds a value which can change during program exe...
- Identify the correct concept described as: a reusable block of code that performs a specific task and can be c...
- Function is best defined as which of the following?
- A technique where a function calls itself to solve smaller instances of a problem. What is this concept called...
- Choose the correct description of Recursion.
- Which of the following best names the concept in which a classification that specifies what kind of value a va...