Question 1
+2 marksOne or more correct optionsSelect all that apply.
- A
- B
- C
- D
- E
A lexical analyzer uses the following rules.
The keyword rule has higher priority than the identifier rule. Input
Which of the following gives the correct number of Keyword, Identifier, and Number tokens?
(3,1,0)
(2,2,0)
(3,2,0)
(2,1,1)
Convert the following infix expression to postfix notation:
Which one of the following is the correct postfix expression?
Sign in with Google — it is free — to see every question with its answer and explanation, practise it in learning mode, or take it as a timed mock test.
The IIT Madras BS Compiler Design (Compiler Design) Quiz 2 paper sat on 16 Aug 2026, in the May 2026 term: 16 questions for 47 marks in 120 minutes. The first 3 questions are below. Sign in with Google — it is free — to see the whole paper with its answers and explanations, in learning mode or as a timed mock test.
| Feature | Compiler Design Quiz 2 16 Aug 2026 at a glance |
|---|---|
| Term | May 2026 term |
| Subject | Compiler Design |
| Course code | BSCS4032 |
| Questions | 16 |
| Marks | 47 |
| Duration | 120 min |
| MSQ | 4 |
| MCQ | 10 |
| Numerical | 2 |
| Official paper | Compiler Design 14 Aug 26 |
| Negative marking | No negative marking. |
| Updated |