Skip to content

Compiler Design

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.

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

More Compiler Design MCQs