Skip to content

Compiler Design

Which concept is defined as follows: a categorized unit of meaning, such as a keyword or identifier, produced during lexical analysis?

Difficulty: Medium

About this MCQ

This Medium Compiler Design MCQ checks one syllabus fact.

The question is: “Which concept is defined as follows: a categorized unit of meaning, such as a keyword or identifier, produced during lexical analysis?”

The accepted answer is B. Token. Token is the person, body, or term that satisfies “Which concept is defined as follows: a categorized unit of meaning, such as a keyword or identifier, produced during lexical analysis” (option B). Option A (“Compiler”) does not match the stem; it is a near-miss used to catch incomplete recall of Token. Option C (“Recursive descent parser”) does not match the stem; it is a near-miss used to catch incomplete recall of Token. Remaining alternatives (Lexeme) fall outside the same rule and should be eliminated once Token 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

B. Token

Explanation

Token is the person, body, or term that satisfies “Which concept is defined as follows: a categorized unit of meaning, such as a keyword or identifier, produced during lexical analysis” (option B). Option A (“Compiler”) does not match the stem; it is a near-miss used to catch incomplete recall of Token. Option C (“Recursive descent parser”) does not match the stem; it is a near-miss used to catch incomplete recall of Token. Remaining alternatives (Lexeme) fall outside the same rule and should be eliminated once Token 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