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.
- A. Nested loop ✓
- B. Modular programming
Why not B: “Modular programming” is not correct. 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 m
- C. String (data type)
Why not C: “String (data type)” is not correct. 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 m
- D. Runtime error
Why not D: “Runtime error” is not correct. 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 m
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
- The concept in which a software design technique that breaks a program into separate, interchangeable modules...
- Select the correct name for: an informal, high-level description of a program's logic that is not tied to any...
- What is the function or purpose of Operator precedence?
- Which of the following best names the concept in which the set of rules that determines the order in which ope...
- Choose the correct description of String (data type).
- A data type used to represent a sequence of characters, such as text. What is this concept called?