Select the correct name for: an error that occurs while a program is executing, often causing it to crash or behave unexpectedly.
Difficulty: Medium
About this MCQ
This Medium Programming Concepts MCQ checks one syllabus fact.
The question is: “Select the correct name for: an error that occurs while a program is executing, often causing it to crash or behave unexpectedly.”
The accepted answer is A. Runtime error. “Select the correct name for: an error that occurs while a program is executing, often causing it to crash or behave unexpectedly.” is answered by Runtime error (option A). Option B (“Modular programming”) does not match the stem; it is a near-miss used to catch incomplete recall of Runtime error. Option C (“Nested loop”) does not match the stem; it is a near-miss used to catch incomplete recall of Runtime error. Remaining alternatives (Iteration) fall outside the same rule and should be eliminated once Runtime error 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. Runtime error ✓
- B. Modular programming
Why not B: “Modular programming” is not correct. The accepted answer is A. Runtime error. “Select the correct name for: an error that occurs while a program is executing, often causing it to crash or behave unexpectedly.” is answered by Runtime error (option A). Option
- C. Nested loop
Why not C: “Nested loop” is not correct. The accepted answer is A. Runtime error. “Select the correct name for: an error that occurs while a program is executing, often causing it to crash or behave unexpectedly.” is answered by Runtime error (option A). Option
- D. Iteration
Why not D: “Iteration” is not correct. The accepted answer is A. Runtime error. “Select the correct name for: an error that occurs while a program is executing, often causing it to crash or behave unexpectedly.” is answered by Runtime error (option A). Option
Correct answer
A. Runtime error
Explanation
“Select the correct name for: an error that occurs while a program is executing, often causing it to crash or behave unexpectedly.” is answered by Runtime error (option A). Option B (“Modular programming”) does not match the stem; it is a near-miss used to catch incomplete recall of Runtime error. Option C (“Nested loop”) does not match the stem; it is a near-miss used to catch incomplete recall of Runtime error. Remaining alternatives (Iteration) fall outside the same rule and should be eliminated once Runtime error 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 term describes the following? an error that occurs when code does not follow the grammatical rules of the...
- Which concept is defined as follows: the process of repeating a set of instructions until a specific condition...
- Identify the correct definition of Constant.
- What is Iteration primarily used for?
- The concept in which a named value in a program that cannot be changed once it has been assigned is best known...
- The following statement describes a specific concept. What is it called? a type system where variable types ar...