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.
- A. Parameter
Why not A: “Parameter” is not correct. 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
- B. Iteration
Why not B: “Iteration” is not correct. 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. Syntax error ✓
- D. Runtime error
Why not D: “Runtime error” is not correct. 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
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
- The concept in which a named value in a program that cannot be changed once it has been assigned is best known...
- Select the correct name for: an error that occurs while a program is executing, often causing it to crash or b...
- Which statement correctly explains Runtime error?
- Which concept is defined as follows: the process of repeating a set of instructions until a specific condition...
- What is Iteration primarily used for?
- The following statement describes a specific concept. What is it called? a type system where variable types ar...