Question 6
Which of the following is NOT a responsibility of the lexical analyzer?
Removing white spaces and comments
Recognizing keywords and identifiers
Checking whether parentheses are properly balanced
Producing tokens for the parser
Which of the following is NOT a responsibility of the lexical analyzer?
Removing white spaces and comments
Recognizing keywords and identifiers
Checking whether parentheses are properly balanced
Producing tokens for the parser
Correct answer
Checking whether parentheses are properly balanced
Question 6 of 16 in the IIT Madras BS Compiler Design (Compiler Design) Quiz 1 paper sat on 19 Jul 2026, in the May 2026 term (Compiler Design 16 Jul 26). It carries 2 marks.