ACtE08 · Chapter 8Mock Test 02🏛️ Past Licensure QuestionID: 37c8128f
In compiler design, the lexical analyzer converts a raw stream of source characters into a:
In compiler design, the lexical analyzer converts a raw stream of source characters into a:
Multiple Choice Options
- A✓ Correct Option
Stream of tokens
- B
Stream of characters
- C
Stream of bits
- D
Stream of bytes
Detailed Technical Solution & Explanation
The lexical analyzer (scanner) reads the input source program as a sequence of raw characters, groups them into meaningful lexemes, and produces an output stream of tokens for the syntax analyzer (parser).
Option Analysis:
•
Option A (Stream of tokens): Correct. The primary output generated by lexical analysis.
•
Option B (Stream of characters): The input to the lexical analyzer.
•
Option C (Stream of bits): Physical layer representation.
•
Option D (Stream of bytes): Low-level binary file representation.
Reference: Mock Test 02NEC Licensure Syllabus