Question

What does a lexer (lexical analyzer) do in the compilation process?

A Generates optimized machine code
B Checks for semantic errors
C Converts high-level code to assembly language
D Converts source code into a stream of tokens
E None of these
Practice Next

Relevant for Exams:

Hey! Ask a query

🎓
Think You're Ready for RBI Grade B?
RBI Grade B 2026 Phase 1 Memory Based Paper
  • 200 Questions with Detailed Solutions
  • Section-wise Coverage (GA, English, Quant & Reasoning)