Skip to content

Programming Concepts

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.

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

More Programming Concepts MCQs