Select the correct name for: a tree representation showing the syntactic structure of source code according to grammar rules.
Difficulty: Medium
About this MCQ
This Medium Compiler Design MCQ checks one syllabus fact.
The question is: “Select the correct name for: a tree representation showing the syntactic structure of source code according to grammar rules.”
The accepted answer is C. Parse tree. “Select the correct name for: a tree representation showing the syntactic structure of source code according to grammar rules.” is answered by Parse tree (option C). Option A (“Lexeme”) does not match the stem; it is a near-miss used to catch incomplete recall of Parse tree. Option B (“Semantic analysis”) does not match the stem; it is a near-miss used to catch incomplete recall of Parse tree. Remaining alternatives (Compiler) fall outside the same rule and should be eliminated once Parse tree 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. Lexeme
Why not A: “Lexeme” is not correct. The accepted answer is C. Parse tree. “Select the correct name for: a tree representation showing the syntactic structure of source code according to grammar rules.” is answered by Parse tree (option C). Option A (“Lex
- B. Semantic analysis
Why not B: “Semantic analysis” is not correct. The accepted answer is C. Parse tree. “Select the correct name for: a tree representation showing the syntactic structure of source code according to grammar rules.” is answered by Parse tree (option C). Option A (“Lex
- C. Parse tree ✓
- D. Compiler
Why not D: “Compiler” is not correct. The accepted answer is C. Parse tree. “Select the correct name for: a tree representation showing the syntactic structure of source code according to grammar rules.” is answered by Parse tree (option C). Option A (“Lex
Correct answer
C. Parse tree
Explanation
“Select the correct name for: a tree representation showing the syntactic structure of source code according to grammar rules.” is answered by Parse tree (option C). Option A (“Lexeme”) does not match the stem; it is a near-miss used to catch incomplete recall of Parse tree. Option B (“Semantic analysis”) does not match the stem; it is a near-miss used to catch incomplete recall of Parse tree. Remaining alternatives (Compiler) fall outside the same rule and should be eliminated once Parse tree 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 sequence of characters in source code that matches the pattern for a toke...
- Which concept is defined as follows: a categorized unit of meaning, such as a keyword or identifier, produced...
- Identify the correct definition of Code optimization.
- What is Token primarily used for?
- The concept in which the compiler phase that improves intermediate or final code to make it run faster or use...
- The following statement describes a specific concept. What is it called? a program that translates an entire s...