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.
- A. Compiler
Why not A: “Compiler” is not correct. 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 anal
- B. Token ✓
- C. Recursive descent parser
Why not C: “Recursive descent parser” is not correct. 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 anal
- D. Lexeme
Why not D: “Lexeme” is not correct. 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 anal
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
- Select the correct name for: a tree representation showing the syntactic structure of source code according to...
- The following statement describes a specific concept. What is it called? a program that translates an entire s...
- In computer science, Lexeme refers to which of the following?
- Select the accurate description of Compiler.
- What term describes the following? a sequence of characters in source code that matches the pattern for a toke...
- Which term refers to a program that executes source code directly, translating and running it line by line wit...