Skip to content

Programming Concepts

What term describes the following? an error that occurs when code does not follow the grammatical rules of the programming language.

Difficulty: Easy

About this MCQ

This Easy Programming Concepts MCQ checks one syllabus fact.

The question is: “What term describes the following? an error that occurs when code does not follow the grammatical rules of the programming language.”

The accepted answer is C. Syntax error. Syntax error is the fact required by “What term describes the following? an error that occurs when code does not follow the grammatical rules of the programming language.” (option C). Option A (“Parameter”) does not match the stem; it is a near-miss used to catch incomplete recall of Syntax error. Option B (“Iteration”) does not match the stem; it is a near-miss used to catch incomplete recall of Syntax error. Remaining alternatives (Runtime error) fall outside the same rule and should be eliminated once Syntax 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

C. Syntax error

Explanation

Syntax error is the fact required by “What term describes the following? an error that occurs when code does not follow the grammatical rules of the programming language.” (option C). Option A (“Parameter”) does not match the stem; it is a near-miss used to catch incomplete recall of Syntax error. Option B (“Iteration”) does not match the stem; it is a near-miss used to catch incomplete recall of Syntax error. Remaining alternatives (Runtime error) fall outside the same rule and should be eliminated once Syntax 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