// THE QUESTION BANK
A little focus.
A better attempt.
Find your topic. Work through a few questions. Open the official answer when one is available.
Loading your next set of questions…
// THE QUESTION BANK
Find your topic. Work through a few questions. Open the official answer when one is available.
Loading your next set of questions…
// THE QUESTION BANK
Find your topic. Work through a few questions. Open the official answer when one is available.
YOUR SELECTION
Showing 1–12 · 3 papers
Question 1
From Anna University — Compiler Design (CS3501), April/May 2024
State the difference between a compiler and an interpreter.
Write your answer in full; there are no options to pick from.
No verified answer is available for this question.
Question from the source paper. Published documents are listed by the exam body at its document index.
Question 2
From Anna University — Compiler Design (CS3501), April/May 2024
Define the interaction between lexical analyzers and parsers.
Write your answer in full; there are no options to pick from.
No verified answer is available for this question.
Question from the source paper. Published documents are listed by the exam body at its document index.
Question 3
From Anna University — Compiler Design (CS3501), April/May 2024
What are the common programming errors that can occur at different levels?
Write your answer in full; there are no options to pick from.
No verified answer is available for this question.
Question from the source paper. Published documents are listed by the exam body at its document index.
Questions the exam body withdrew, and questions that need unavailable source figures, are stored with their papers and withheld here. Each served question links to its source paper.
This is self-study practice. It does not issue assessment results, certificates or profile proof. Attempts on this page reset when you leave it.
Question 4
From Anna University — Compiler Design (CS3501), April/May 2024
What is the purpose of LR parsers?
Write your answer in full; there are no options to pick from.
No verified answer is available for this question.
Question from the source paper. Published documents are listed by the exam body at its document index.
Question 5
From Anna University — Compiler Design (CS3501), April/May 2024
Define inherited attribute.
Write your answer in full; there are no options to pick from.
No verified answer is available for this question.
Question from the source paper. Published documents are listed by the exam body at its document index.
Question 6
From Anna University — Compiler Design (CS3501), April/May 2024
State the rules of type checking.
Write your answer in full; there are no options to pick from.
No verified answer is available for this question.
Question from the source paper. Published documents are listed by the exam body at its document index.
Question 7
From Anna University — Compiler Design (CS3501), April/May 2024
What are two strategies for dynamic storage allocation?
Write your answer in full; there are no options to pick from.
No verified answer is available for this question.
Question from the source paper. Published documents are listed by the exam body at its document index.
Question 8
From Anna University — Compiler Design (CS3501), April/May 2024
Write the role of activation record.
Write your answer in full; there are no options to pick from.
No verified answer is available for this question.
Question from the source paper. Published documents are listed by the exam body at its document index.
Question 9
From Anna University — Compiler Design (CS3501), April/May 2024
What are the causes of redundancy?
Write your answer in full; there are no options to pick from.
No verified answer is available for this question.
Question from the source paper. Published documents are listed by the exam body at its document index.
Question 10
From Anna University — Compiler Design (CS3501), April/May 2024
What is copy propagation?
Write your answer in full; there are no options to pick from.
No verified answer is available for this question.
Question from the source paper. Published documents are listed by the exam body at its document index.
Question 11
From Anna University — Compiler Design (CS3501), April/May 2024
(a) (i) Divide the following C++ program. (5) float limitedSquare(x) { /* returns x-squared, but never float x; more than 100*/ return (x<=-10.0||x>=10.0)? 100:x*x; } Into appropriate lexemes. Which lexemes should get associated lexical values? What should those values be? (ii) Explain the role of lexical analyzer. (8) (OR) (b) (i) Describe the languages denoted by the following regular expressions : (5) (1) a(a|b)*a (2) ((ε|a)b*)* (3) (a|b)*a(a|b)(a|b) (4) a*ba*ba*ba* (5) !!(aa|bb)*((ab|ba)(aa|bb)* (ab|ba)(aa|bb)*)*. (ii) Explain the construction of a DFA from a regular expression. (8)
Write your answer in full; there are no options to pick from.
No verified answer is available for this question.
Question from the source paper. Published documents are listed by the exam body at its document index.
Question 12
From Anna University — Compiler Design (CS3501), April/May 2024
(a) (i) Consider the context-free grammar. S -> SS+ | SS* | a and the string aa + a* (1) Give a leftmost derivation for the string. (1) (2) Give a rightmost derivation for the string. (1) (3) Give a parse tree for the string. (1) (4) Is the grammar ambiguous or unambiguous? Justify your answer. (2) (ii) Explain the error handling and error recovery mechanism of syntax analyser. (8) (OR) (b) (i) Show that the following grammar. (5) S -> SA | A A -> a is SLR(1) but not LL(1). (ii) State and explain the algorithm to eliminate left recursion from a grammar. (8)
Write your answer in full; there are no options to pick from.
No verified answer is available for this question.
Question from the source paper. Published documents are listed by the exam body at its document index.