Skip to content

Programming Concepts

What term describes the following? a loop that exists inside the body of another loop.

Difficulty: Medium

About this MCQ

This Medium Programming Concepts MCQ checks one syllabus fact.

The question is: “What term describes the following? a loop that exists inside the body of another loop.”

The accepted answer is A. Nested loop. Nested loop is the fact required by “What term describes the following? a loop that exists inside the body of another loop.” (option A). Option B (“Modular programming”) does not match the stem; it is a near-miss used to catch incomplete recall of Nested loop. Option C (“String (data type)”) does not match the stem; it is a near-miss used to catch incomplete recall of Nested loop. Remaining alternatives (Runtime error) fall outside the same rule and should be eliminated once Nested 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. Nested loop

Explanation

Nested loop is the fact required by “What term describes the following? a loop that exists inside the body of another loop.” (option A). Option B (“Modular programming”) does not match the stem; it is a near-miss used to catch incomplete recall of Nested loop. Option C (“String (data type)”) does not match the stem; it is a near-miss used to catch incomplete recall of Nested loop. Remaining alternatives (Runtime error) fall outside the same rule and should be eliminated once Nested 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