Select the correct name for: the part of a compiler responsible for analyzing source code, including lexical, syntax, and semantic analysis.
Difficulty: Medium
About this MCQ
This Medium Compiler Design MCQ checks one syllabus fact.
The question is: “Select the correct name for: the part of a compiler responsible for analyzing source code, including lexical, syntax, and semantic analysis.”
The accepted answer is C. Compiler front end. “Select the correct name for: the part of a compiler responsible for analyzing source code, including lexical, syntax, and semantic analysis.” is answered by Compiler front end (option C). Option A (“Loader”) does not match the stem; it is a near-miss used to catch incomplete recall of Compiler front end. Option B (“Bytecode”) does not match the stem; it is a near-miss used to catch incomplete recall of Compiler front end. Remaining alternatives (Type checking) fall outside the same rule and should be eliminated once Compiler front end is identified. Compiler Design questions of this type reward precise definitions rather than approximate associations. Compiler Design recall of this distinction is a regular item in FPSC, PPSC, NTS, and CSS papers.
- A. Loader
Why not A: “Loader” is not correct. The accepted answer is C. Compiler front end. “Select the correct name for: the part of a compiler responsible for analyzing source code, including lexical, syntax, and semantic analysis.” is answered by Compiler front end (op
- B. Bytecode
Why not B: “Bytecode” is not correct. The accepted answer is C. Compiler front end. “Select the correct name for: the part of a compiler responsible for analyzing source code, including lexical, syntax, and semantic analysis.” is answered by Compiler front end (op
- C. Compiler front end ✓
- D. Type checking
Why not D: “Type checking” is not correct. The accepted answer is C. Compiler front end. “Select the correct name for: the part of a compiler responsible for analyzing source code, including lexical, syntax, and semantic analysis.” is answered by Compiler front end (op
Correct answer
C. Compiler front end
Explanation
“Select the correct name for: the part of a compiler responsible for analyzing source code, including lexical, syntax, and semantic analysis.” is answered by Compiler front end (option C). Option A (“Loader”) does not match the stem; it is a near-miss used to catch incomplete recall of Compiler front end. Option B (“Bytecode”) does not match the stem; it is a near-miss used to catch incomplete recall of Compiler front end. Remaining alternatives (Type checking) fall outside the same rule and should be eliminated once Compiler front end is identified. Compiler Design questions of this type reward precise definitions rather than approximate associations. Compiler Design recall of this distinction is a regular item in FPSC, PPSC, NTS, and CSS papers.
Source: Compiler Design Official Reference Guide
Tags: computer science, compiler design, compilers, programming languages
Submitted by: MCQsHub Editorial
Related MCQs
- What term describes the following? a compiler process that verifies whether operations in a program are perfor...
- Identify the correct definition of Bytecode.
- The concept in which an intermediate, platform-independent representation of source code designed to be execut...
- What is the function or purpose of Cross-compiler?
- Which of the following best names the concept in which a compiler capable of creating executable code for a pl...
- Choose the correct description of Peephole optimization.