What is the name for a line of text in source code that is ignored by the compiler or interpreter and used to explain the code?
Difficulty: Easy
About this MCQ
This Easy Programming Concepts MCQ checks one syllabus fact.
The question is: “What is the name for a line of text in source code that is ignored by the compiler or interpreter and used to explain the code?”
The accepted answer is C. Code comment. Code comment refers to a line of text in source code that is ignored by the compiler or interpreter and used to explain the code.
- A. Runtime error
Why not A: “Runtime error” is not correct. The accepted answer is C. Code comment. Code comment refers to a line of text in source code that is ignored by the compiler or interpreter and used to explain the code.
- B. Parameter
Why not B: “Parameter” is not correct. The accepted answer is C. Code comment. Code comment refers to a line of text in source code that is ignored by the compiler or interpreter and used to explain the code.
- C. Code comment ✓
- D. Constant
Why not D: “Constant” is not correct. The accepted answer is C. Code comment. Code comment refers to a line of text in source code that is ignored by the compiler or interpreter and used to explain the code.
Correct answer
C. Code comment
Explanation
Code comment refers to a line of text in source code that is ignored by the compiler or interpreter and used to explain the code.
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...
- Identify the correct definition of Constant.
- What term describes the following? an error that occurs when code does not follow the grammatical rules of the...
- In computer science, Syntax error refers to which of the following?
- 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?