Difficulty distribution
How the classified questions are distributed by difficulty.
Your cart is empty.
Practice Translation and Runtime Environments - Compiler Design - Computer Science & Information Technology previous year questions organised from real papers, with year-wise coverage and clear topic navigation.
Every graph below is calculated only from this selection.
Year-wise coverage for Translation and Runtime Environments. Each bar uses a separate theme-derived color.
How the classified questions are distributed by difficulty.
MCQ, numerical, multiple-select and other formats found in these papers.
Top subjects by unique question coverage.
Top topics across the included previous year papers.
Top subtopics inside this exact selection.
Question coverage for the most populated papers. Every active PYP paper remains listed below.
Newest papers appear first. Sort by year, question coverage or name.
| Paper | Year / session | Questions in this view | Open |
|---|---|---|---|
| Computer Science & Information Technology (CS) 2024 [Session 2] | 2024 | 1 | View paper |
| Computer Science & Information Technology (CS) 2023 [Session 2] | 2023 | 2 | View paper |
| Computer Science & Information Technology (CS) 2022 [Session 2] | 2022 | 1 | View paper |
| Computer Science & Information Technology (CS) 2021 [Session 1] | 2021 | 2 | View paper |
| Computer Science & Information Technology (CS) 2021 [Session 2] | 2021 | 1 | View paper |
| Computer Science & Information Technology (CS) 2020 [Session 2] | 2020 | 1 | View paper |
| Computer Science & Information Technology (CS) 2019 [Session 2] | 2019 | 1 | View paper |
| Computer Science & Information Technology (CS) 2016 [Session 1] | 2016 | 1 | View paper |
| Computer Science & Information Technology (CS) 2016 [Session 2] | 2016 | 1 | View paper |
| Computer Science & Information Technology (CS) 2014 [Session 2] | 2014 | 1 | View paper |
| Computer Science & Information Technology (CS) 2014 [Session 3] | 2014 | 1 | View paper |
Practice every matching question in batches of 20, with every available option.
| Production rule | Semantic action |
|---|---|
| D → T L | X1.type = X2.type |
| T → int | T.type = int |
| T → float | T.type = float |
| L → L1 , id | X3.type = X4.type addType(id.entry, X5.type) |
| L → id | addType(id.entry, X6.type) |
Consider the following grammar (that admits a series of declarations, followed by expressions) and the associated syntax directed translation (SDT) actions, given as pseudo-code:
P → D* E*
D → int ID {record that ID.lexeme is of type int}
D → bool ID {record that ID.lexeme is of type bool}
E → E1 + E2 {check that E1.type = E2.type = int; set E.type := int}
E → !E1 {check that E1.type = bool; set E.type := bool}
E → ID {set E.type := int}
With respect to the above grammar, which one of the following choices is correct?