Skip to content

Programming Concepts

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.

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

More Programming Concepts MCQs