SlideShare a Scribd company logo
3
Most read
PRINCIPLES OF COMPILER DESIGN –
                              UNIVERSITY QUESTIONS MCA/MSc(CS)


      I.      Compilers


Give introduction about compiler. 5 marks MCA Dec’08
Explain the different phases of a compiler.5-MCA-May08/5MscDec08/5MscMay08
Discuss briefly about the structure of a compiler. 20MscMay09


IA.        Lexical Analyzer


How to implement Lexical Analyzer.? Explain. 5 Marks MCA Dec’08/20MCAMay08
Explain role of lexical analyzer. 5MCADec07 /5MscDec07
How token can be recognized using LEX tool? 5-MCA-May08
Write algorithm for constructing NFA. 5MCADec08
Construct a NFA for the regular expression (a/b)*abb. 5MscDec08
Describe simple approach to the design of lexical analyzers. 5MscMay09
What do you mean by regular expression? Write down its rules. 5MscMay09/5MscDec07
Explain about lexical analysis, regular expression, non-deterministic automata. 20-MCA-Dec08
Define DFA. How will you minimize the states DFA. 20MCADec07/5MscMay08
Write an algorithm for constructing a DFA from a NFA and give one example.
20MscDec08/20MscDe07
Explain briefly about NFA and DFA with examples. 20MscDec07


II.        Parser


Describe the following:
      i)      Bottom up parsing ii)Shift reduce parsing
5MCA Dec08/May08/Dec07/MscMay09/MscDec08/20MscDec08
Explain top down parsing. 5MCADec07/5MscMay08
What are the difficulties in top down parsing.5MscMay09
Write about LR parsers 5 marks MCA Dec’08/20MCAMay08/5MscMay08
Describe parser generators. 5-MCA-May08
Write notes on parameter passing. 5MCADec07/5MscDec08/5MscDec07
Write the operator precedence parsing algorithm. 5MscDec08/5MscDec07
Write about parsers and how to generate YACC. 20-MCA-Dec08/5MscDec07
Explain the construction of recursive descent parsing with example.
20MCADec07/10MscDec08
Explain model of predictive parser. 20MscM09/20MscDec07
Discuss the stack implementation of shift reduce parsing with examples. 20MscDec07


III.   Intermediate Code Generation


Write about recursive evaluators. 5-MCA-Dec08
Describe polymorphic functions. 5-MCA-Dec08/5MCAMay08/5MscDec08/5MscMay08
Explain top-down translation. 5MCAMay08
Explain the evaluation of inherited attributes. 5MCADec07/10MscDec07
Explain syntax directed definition for constructing a syntax tree for the expression. 5MscMay09
Explain about overloading of functions and operators. 20-MCA-
Dec08/5MCADec07/5MscDec07
Explain in detail the concept of type checking which includes
type systems, type conversions etc., 20MCAMay08/10MscDec08
Write notes on type systems. 5MscMay09/5MscMay08
Differentiate between parse tree and syntax tree. 5MscDec08
Explain the construction of syntax tree with example. 20MCADec07/10MscDec07/5MscDec07
Describe four kinds of intermediate code used in a compiler. 20MscMay09/20MscDec07


IV.    Storage


Write about dynamic storage allocation. 5-MCA-Dec08/20MCADec07
Write notes on storage allocation strategies.
5MCAMay08/20MscDec08/5MscMay08/20MscDec07
Explain Back patching. 5-MCA-Dec08/10MCAMay08
Describe representation declarations. 5MCAMay08/5MscMay08
What are assignment statements? Explain 5MCADec07
Describe the translation scheme for the assignment statements. 5MscMay09
Difference between call by value and call by reference. MscMay09
Explain about Boolean expression with examples – 20-MCA-Dec08/10MCAMay08
Discuss briefly about the data structure for symbol table.
20MscMay09/5MscDec08/20MscMay08/5MscDec07




V.     Code Generation


Write about global data flow analysis. 5-MCA-Dec08/5MCADec07
Write short notes on code optimization 5MCA/May08
What are the issues in the design of a code generator? Explain. 5MscDec08
Define optimization. Explain the principal sources of optimization.20MCADec07/5MscDec07
What are the principal sources of optimization. Explain. 5MscMay09
Describe register allocation and assignment 5MCAMay08
Describe runtime storage management. 5MCADec07/5MscMay09
What is a flow graph. Give an example. 5MscMay08
Describe the algorithm to construct a directed acyclic graph.
Explain DAG representation of basic blocks. 20-MCA-Dec08
Define Basic Block. Write an algorithm for partition into basic blocks.
5MscDec08/5MScDec07
Explain algorithm to construct a DAG 20MCAM08
Explain the various concepts involved in code optimization. 20MscMay09
Discuss about the peephole optimization and global data flow analysis.
20MscDec08/5MSCDec07
Discuss about the GDF and loop optimization. 20MSCDec07

More Related Content

PPT
Formal Specification in Software Engineering SE9
PPTX
Interactive debugging system
PPTX
Coding and testing in Software Engineering
PDF
Black Box Testing
PPTX
Blood Bank Management System
PPTX
Software Engineering Layered Technology Software Process Framework
PPT
PROCESS MODELS.ppt
PPTX
Compiler design syntax analysis
Formal Specification in Software Engineering SE9
Interactive debugging system
Coding and testing in Software Engineering
Black Box Testing
Blood Bank Management System
Software Engineering Layered Technology Software Process Framework
PROCESS MODELS.ppt
Compiler design syntax analysis

What's hot (20)

PDF
Overview of computing paradigm
PPTX
Prototype model
PPT
Chapter07 determining system requirements
PPTX
Context model
PDF
Project control and process instrumentation
PPTX
Distribution transparency and Distributed transaction
PPTX
Basis path testing
PDF
Unit 4- Software Engineering System Model Notes
PPTX
Types of Programming Errors
DOCX
Online votingsystem
PPTX
Dynamic Itemset Counting
PPTX
Parallel algorithms
PPT
Path testing, data flow testing
PDF
3. ch 2-process model
PDF
Agile model
PDF
Spm software effort estimation
ODP
Introduction to Shell script
PDF
Constructive Cost Model - II (COCOMO-II)
PPTX
Recognition-of-tokens
PPTX
White Box Testing
Overview of computing paradigm
Prototype model
Chapter07 determining system requirements
Context model
Project control and process instrumentation
Distribution transparency and Distributed transaction
Basis path testing
Unit 4- Software Engineering System Model Notes
Types of Programming Errors
Online votingsystem
Dynamic Itemset Counting
Parallel algorithms
Path testing, data flow testing
3. ch 2-process model
Agile model
Spm software effort estimation
Introduction to Shell script
Constructive Cost Model - II (COCOMO-II)
Recognition-of-tokens
White Box Testing
Ad

Viewers also liked (8)

DOCX
Cs6660 compiler design may june 2016 Answer Key
DOCX
Cs6660 compiler design november december 2016 Answer key
ODP
About Tokens and Lexemes
PDF
Compiler design lab programs
PPT
Code Optimization
PPTX
The analysis synthesis model of compilation
PPTX
Compiler Design - Ambiguous grammar, LMD & RMD, Infix & Postfix, Implementati...
Cs6660 compiler design may june 2016 Answer Key
Cs6660 compiler design november december 2016 Answer key
About Tokens and Lexemes
Compiler design lab programs
Code Optimization
The analysis synthesis model of compilation
Compiler Design - Ambiguous grammar, LMD & RMD, Infix & Postfix, Implementati...
Ad

Similar to Compiler Questions (20)

DOCX
Smu mca spring 2014 solved assignments
DOC
Question bank malp 3340302
DOC
Qoestion Bank Big Questions
DOC
Format 9002 0 vlsi-q-bank
PDF
8th Semester Computer Science (2013-June) Question Papers
DOC
A10 microprocessor & microcontrollers ( eee, ece & ecm )
PDF
Friends let real friends use MySQL 8.0
PDF
U21CS502--Compiler Design--Question Bank
DOCX
Smu mca sem 4 winter 2016 assignments
DOCX
Smu mca sem 4 fall 2016 assignments
DOCX
COMP 2213X2 Assignment #2 Parts A and BDue February 3 in cla.docx
DOCX
Smu bca sem 4 spring 2015 assignments
PDF
Bca spring driveassignments
PDF
5th Semester CS / IS (2013-June) Question Papers
PDF
2013-June: 5th Semester CSE / ISE Question Papers
PDF
IRJET-RFID Based Book Tracking in Libraries: Using Bicam
PDF
EE6502 Microprocessors and Microcontrollers
PDF
Bca smu solved assignments
Smu mca spring 2014 solved assignments
Question bank malp 3340302
Qoestion Bank Big Questions
Format 9002 0 vlsi-q-bank
8th Semester Computer Science (2013-June) Question Papers
A10 microprocessor & microcontrollers ( eee, ece & ecm )
Friends let real friends use MySQL 8.0
U21CS502--Compiler Design--Question Bank
Smu mca sem 4 winter 2016 assignments
Smu mca sem 4 fall 2016 assignments
COMP 2213X2 Assignment #2 Parts A and BDue February 3 in cla.docx
Smu bca sem 4 spring 2015 assignments
Bca spring driveassignments
5th Semester CS / IS (2013-June) Question Papers
2013-June: 5th Semester CSE / ISE Question Papers
IRJET-RFID Based Book Tracking in Libraries: Using Bicam
EE6502 Microprocessors and Microcontrollers
Bca smu solved assignments

More from Dr. C.V. Suresh Babu (20)

PPTX
Data analytics with R
PPTX
Association rules
PPTX
PPTX
Classification
PPTX
Blue property assumptions.
PPTX
Introduction to regression
PPTX
Expert systems
PPTX
Dempster shafer theory
PPTX
Bayes network
PPTX
Bayes' theorem
PPTX
Knowledge based agents
PPTX
Rule based system
PPTX
Formal Logic in AI
PPTX
Production based system
PPTX
Game playing in AI
PPTX
Diagnosis test of diabetics and hypertension by AI
PPTX
A study on “impact of artificial intelligence in covid19 diagnosis”
PDF
A study on “impact of artificial intelligence in covid19 diagnosis”
Data analytics with R
Association rules
Classification
Blue property assumptions.
Introduction to regression
Expert systems
Dempster shafer theory
Bayes network
Bayes' theorem
Knowledge based agents
Rule based system
Formal Logic in AI
Production based system
Game playing in AI
Diagnosis test of diabetics and hypertension by AI
A study on “impact of artificial intelligence in covid19 diagnosis”
A study on “impact of artificial intelligence in covid19 diagnosis”

Recently uploaded (20)

PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Electronic commerce courselecture one. Pdf
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
Big Data Technologies - Introduction.pptx
PDF
Empathic Computing: Creating Shared Understanding
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Approach and Philosophy of On baking technology
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
Spectroscopy.pptx food analysis technology
PDF
Encapsulation theory and applications.pdf
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Diabetes mellitus diagnosis method based random forest with bat algorithm
Electronic commerce courselecture one. Pdf
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Big Data Technologies - Introduction.pptx
Empathic Computing: Creating Shared Understanding
Spectral efficient network and resource selection model in 5G networks
MIND Revenue Release Quarter 2 2025 Press Release
Encapsulation_ Review paper, used for researhc scholars
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Approach and Philosophy of On baking technology
Network Security Unit 5.pdf for BCA BBA.
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Spectroscopy.pptx food analysis technology
Encapsulation theory and applications.pdf
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
The Rise and Fall of 3GPP – Time for a Sabbatical?
Programs and apps: productivity, graphics, security and other tools
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Mobile App Security Testing_ A Comprehensive Guide.pdf

Compiler Questions

  • 1. PRINCIPLES OF COMPILER DESIGN – UNIVERSITY QUESTIONS MCA/MSc(CS) I. Compilers Give introduction about compiler. 5 marks MCA Dec’08 Explain the different phases of a compiler.5-MCA-May08/5MscDec08/5MscMay08 Discuss briefly about the structure of a compiler. 20MscMay09 IA. Lexical Analyzer How to implement Lexical Analyzer.? Explain. 5 Marks MCA Dec’08/20MCAMay08 Explain role of lexical analyzer. 5MCADec07 /5MscDec07 How token can be recognized using LEX tool? 5-MCA-May08 Write algorithm for constructing NFA. 5MCADec08 Construct a NFA for the regular expression (a/b)*abb. 5MscDec08 Describe simple approach to the design of lexical analyzers. 5MscMay09 What do you mean by regular expression? Write down its rules. 5MscMay09/5MscDec07 Explain about lexical analysis, regular expression, non-deterministic automata. 20-MCA-Dec08 Define DFA. How will you minimize the states DFA. 20MCADec07/5MscMay08 Write an algorithm for constructing a DFA from a NFA and give one example. 20MscDec08/20MscDe07 Explain briefly about NFA and DFA with examples. 20MscDec07 II. Parser Describe the following: i) Bottom up parsing ii)Shift reduce parsing 5MCA Dec08/May08/Dec07/MscMay09/MscDec08/20MscDec08 Explain top down parsing. 5MCADec07/5MscMay08 What are the difficulties in top down parsing.5MscMay09 Write about LR parsers 5 marks MCA Dec’08/20MCAMay08/5MscMay08 Describe parser generators. 5-MCA-May08 Write notes on parameter passing. 5MCADec07/5MscDec08/5MscDec07
  • 2. Write the operator precedence parsing algorithm. 5MscDec08/5MscDec07 Write about parsers and how to generate YACC. 20-MCA-Dec08/5MscDec07 Explain the construction of recursive descent parsing with example. 20MCADec07/10MscDec08 Explain model of predictive parser. 20MscM09/20MscDec07 Discuss the stack implementation of shift reduce parsing with examples. 20MscDec07 III. Intermediate Code Generation Write about recursive evaluators. 5-MCA-Dec08 Describe polymorphic functions. 5-MCA-Dec08/5MCAMay08/5MscDec08/5MscMay08 Explain top-down translation. 5MCAMay08 Explain the evaluation of inherited attributes. 5MCADec07/10MscDec07 Explain syntax directed definition for constructing a syntax tree for the expression. 5MscMay09 Explain about overloading of functions and operators. 20-MCA- Dec08/5MCADec07/5MscDec07 Explain in detail the concept of type checking which includes type systems, type conversions etc., 20MCAMay08/10MscDec08 Write notes on type systems. 5MscMay09/5MscMay08 Differentiate between parse tree and syntax tree. 5MscDec08 Explain the construction of syntax tree with example. 20MCADec07/10MscDec07/5MscDec07 Describe four kinds of intermediate code used in a compiler. 20MscMay09/20MscDec07 IV. Storage Write about dynamic storage allocation. 5-MCA-Dec08/20MCADec07 Write notes on storage allocation strategies. 5MCAMay08/20MscDec08/5MscMay08/20MscDec07 Explain Back patching. 5-MCA-Dec08/10MCAMay08 Describe representation declarations. 5MCAMay08/5MscMay08 What are assignment statements? Explain 5MCADec07 Describe the translation scheme for the assignment statements. 5MscMay09 Difference between call by value and call by reference. MscMay09 Explain about Boolean expression with examples – 20-MCA-Dec08/10MCAMay08
  • 3. Discuss briefly about the data structure for symbol table. 20MscMay09/5MscDec08/20MscMay08/5MscDec07 V. Code Generation Write about global data flow analysis. 5-MCA-Dec08/5MCADec07 Write short notes on code optimization 5MCA/May08 What are the issues in the design of a code generator? Explain. 5MscDec08 Define optimization. Explain the principal sources of optimization.20MCADec07/5MscDec07 What are the principal sources of optimization. Explain. 5MscMay09 Describe register allocation and assignment 5MCAMay08 Describe runtime storage management. 5MCADec07/5MscMay09 What is a flow graph. Give an example. 5MscMay08 Describe the algorithm to construct a directed acyclic graph. Explain DAG representation of basic blocks. 20-MCA-Dec08 Define Basic Block. Write an algorithm for partition into basic blocks. 5MscDec08/5MScDec07 Explain algorithm to construct a DAG 20MCAM08 Explain the various concepts involved in code optimization. 20MscMay09 Discuss about the peephole optimization and global data flow analysis. 20MscDec08/5MSCDec07 Discuss about the GDF and loop optimization. 20MSCDec07