Exam Details
Subject | compiler design | |
Paper | ||
Exam / Course | b.tech | |
Department | ||
Organization | Vardhaman College Of Engineering | |
Position | ||
Exam Date | June, 2017 | |
City, State | telangana, hyderabad |
Question Paper
Hall Ticket No:
Question Paper Code B3208
(AUTONOMOUS) M. Tech II Semester End Semester Regular Examinations, June 2017
(Regulations: VCE-R15) COMPILER DESIGN
(Computer Science and Engineering) Date: 09 June, 2017 FN
Time: 3 hours
Max Marks: 70
Answer any Five Questions.
All Questions carries equal marks.
1.
Give the general structure of a compiler. Show the working of different phases of a compiler by taking an example.
10M
Explain a language processing system with a block diagram.
4M
2.
Given the grammar.
S a b
L S S
Write a leftmost derivation for the input string
8M
Eliminate the left recursion from a given grammar.
S b
A Ac Sd |ε
6M
3.
Show that the following grammar is ambiguous with an example
E E E id |num.
6M
Consider a grammar.
S
A b
B d
i. Find FIRST and FOLLOW
ii. Construct parsing table
8M
4.
List the difference between the synthesis attribute and inheritance attribute.
6M
Assuming suitable syntax directed definition, construct a syntax tree for the expression a-4+e.
8M
5.
Write the rules for type checking.
4M
Describe the general structure of an activation record. Explain the purpose of each item in the activation record.
10M
6.
Construct the DAG for the expression a a b c b c d.
6M
Explain the principle of source of code optimization.
8M
7.
Explain the issues in the design of code generation.
7M
What are basic blocks and how do you partition a three address code into basic blocks?
7M
8.
Explain the liveness analysis of a code with an example.
6M
Write the three address code for the following program segment and also show the data flow diagram.
for( i<n j<m s
8M
Question Paper Code B3208
(AUTONOMOUS) M. Tech II Semester End Semester Regular Examinations, June 2017
(Regulations: VCE-R15) COMPILER DESIGN
(Computer Science and Engineering) Date: 09 June, 2017 FN
Time: 3 hours
Max Marks: 70
Answer any Five Questions.
All Questions carries equal marks.
1.
Give the general structure of a compiler. Show the working of different phases of a compiler by taking an example.
10M
Explain a language processing system with a block diagram.
4M
2.
Given the grammar.
S a b
L S S
Write a leftmost derivation for the input string
8M
Eliminate the left recursion from a given grammar.
S b
A Ac Sd |ε
6M
3.
Show that the following grammar is ambiguous with an example
E E E id |num.
6M
Consider a grammar.
S
A b
B d
i. Find FIRST and FOLLOW
ii. Construct parsing table
8M
4.
List the difference between the synthesis attribute and inheritance attribute.
6M
Assuming suitable syntax directed definition, construct a syntax tree for the expression a-4+e.
8M
5.
Write the rules for type checking.
4M
Describe the general structure of an activation record. Explain the purpose of each item in the activation record.
10M
6.
Construct the DAG for the expression a a b c b c d.
6M
Explain the principle of source of code optimization.
8M
7.
Explain the issues in the design of code generation.
7M
What are basic blocks and how do you partition a three address code into basic blocks?
7M
8.
Explain the liveness analysis of a code with an example.
6M
Write the three address code for the following program segment and also show the data flow diagram.
for( i<n j<m s
8M
Other Question Papers
Subjects
- advanced computer networks
- advanced database management systems
- advanced digital signal processing
- advanced structural design
- air line management
- air pollution and control methodologies
- aircraft systems and instrumentation
- analog communications
- artificial intelligence
- automobile engineering
- basic electrical engineering
- basic mechanical engineering
- cad/cam
- cellular and mobile comunications
- cloud computing
- coding theory and techniques
- compiler design
- computational fluid dynamics
- computer architecture and parallel processing
- computer graphics
- computer graphics concepts
- computer networks
- computer organization and architecture
- computer programming
- computer vision and pattern recognition
- concrete technology
- control systems
- cyber security
- data mining and data warehousing
- database management systems
- design and drawing of hydraulic structures
- design for testability
- digital image processing
- distributed databases
- distributed operating systems
- electrical machines-ii
- electromagnetics and transmission lines
- electronic measurements and instrumentation
- embedded netwrok and protocols
- embedded software design
- embedded systems
- engineering drawing-i
- engineering mechanics-i
- engineering physics
- entrepreneurship
- environmental engineering-ii
- environmental science
- finite elements methods in civil engineering
- flexible ac transmission systems
- formal language and automata theory
- grid and cloud computing
- hardware software co-design
- heat transfer
- high voltage engineering
- hydraulic machines
- hydraulics and hydraulic machines
- image processing
- image processing and pattern recognition
- industrial management and psychology
- information retrieval systems
- instrumentation and control systems
- kinematics of machinery
- low power cmos vlsi design
- managerial economics and financial analysis
- microwave engineering
- mobile application development through j2me
- national service scheme
- network security and cryptography
- operating systems
- operations research
- pavement analysis and design
- planning and drawing
- power electronic control of ac drives
- power electronic converters-ii
- power semiconductor drives
- power system generation
- power system switchgear and protection
- principles of electrical engineering
- principles of programming languages
- probability theory and numerical methods
- production technology-i
- programmable logic controllers and applications
- project planning and management
- pulse and digital circuits
- reactive power compensation and management
- refrigeration and air conditioning
- rehabilitation and retrofitting structures
- reliability engineering
- renewable energy sources
- robotics and automation
- satellite and radar communications
- service oriented architecture
- signals and systems
- software architecture
- software engineering
- software project management
- software testing and quality assurance
- speech signal processing
- strength of materials-iibuilding
- structural analysis-i
- surveying-ii
- technical english
- thermal engineering-i
- utilization of electrical energy
- vlsi design
- web technologies
- wireless and mobile computing
- wireless communications and networks