Compiler Design

105601

This page collects 52 compiler design questions taken from 2 BEU semester 6 papers, 2023 to 2026 — about 26 questions in a typical paper. They are sorted into the 6 modules of the syllabus, so you can revise a topic across every year at once instead of working through papers one at a time. 52 of them have a worked solution.

What these papers actually ask

Module 2: Syntax Analysis (Parser) is the heaviest module in this archive at 42% of every question recorded, and it has come up in both papers. Together with Module 3: Semantic Analysis, Symbol Table, Run-time environment, the two account for 63% of the archive.

4 modules have appeared in both papers — Module 2: Syntax Analysis (Parser), Module 3: Semantic Analysis, Symbol Table, Run-time environment, Module 1: Introduction, Lexical Analysis, Module 4: Intermediate Code Generation, Code Improvement (optimization). A module that turns up every year is a safer use of revision time than one with the same question count concentrated in a single paper.

How the marks are split

Questions in this archive carry 6 different mark values. The most common is the 7-mark question, with 22 of them recorded — worth knowing before you decide how much depth to practise at.

2 marks · 204 marks · 25 marks · 57 marks · 229 marks · 114 marks · 2

Papers

By module