Exam Details
Subject | lab x — compiler design | |
Paper | ||
Exam / Course | m.c.a./ m.c.a.(lateral) | |
Department | ||
Organization | Alagappa University Distance Education | |
Position | ||
Exam Date | May, 2017 | |
City, State | tamil nadu, karaikudi |
Question Paper
DISTANCE EDUCATION
M.C.A./M.C.A (Lateral) DEGREE EXAMINATION, MAY 2017.
Fifth Semester
LAB X — Compiler Design
(2005 to 2010 calendar year)
Time Three hours Maximum 100 marks
Examiner should select and give ONE question to each
candidate by LOT system.
1. Write a program in C to recognize identifier in the
given source code.
Write a C program to construct SLR parsing table
for the following grammar.
F
T T F/F
E E T/T
2. Write a C program to recognize constant in the
given sources code.
Write a C program to construct of a canonical LR
parsing table for the following grammar.
C cC d.
S CC
Cut here
Sub. Code
57
DE-9541
2
Ws2
3. Write a C program to convert infix expression to
postfix notation.
Write a C program to construct predictive parsing
table for the following production rule:
C b
SI es/ E is empty)
S iCt SSI/a
4. Write a C program to draw the transition diagram
for DFA by accepting the following regular
expression:
abb
1 .10 .
Write a C program to translate the expression
into post fix notation and
three address code, quadraples, triples and Indirect
triples.
5. Write a program to remove spaces, comment lines,
new lines and produce line numbers. (preliminary
scanning).
Construct a C program to accept a string and check
whether it satisfies the following production rule
(By Using Operator precedence grammar).
S AbB
A aBb
B Bba.
Cut here
Cut here
DE-9541
3
Ws2
6. Write a C program to accept a string and check
whether it satisfies the following production rule
(By using shift reduce parsing).
E E E E E E
Write a C program to construct predictive parsing
table for the following production rule:
S iCt SSI/a
eS/E is empty)
C
M.C.A./M.C.A (Lateral) DEGREE EXAMINATION, MAY 2017.
Fifth Semester
LAB X — Compiler Design
(2005 to 2010 calendar year)
Time Three hours Maximum 100 marks
Examiner should select and give ONE question to each
candidate by LOT system.
1. Write a program in C to recognize identifier in the
given source code.
Write a C program to construct SLR parsing table
for the following grammar.
F
T T F/F
E E T/T
2. Write a C program to recognize constant in the
given sources code.
Write a C program to construct of a canonical LR
parsing table for the following grammar.
C cC d.
S CC
Cut here
Sub. Code
57
DE-9541
2
Ws2
3. Write a C program to convert infix expression to
postfix notation.
Write a C program to construct predictive parsing
table for the following production rule:
C b
SI es/ E is empty)
S iCt SSI/a
4. Write a C program to draw the transition diagram
for DFA by accepting the following regular
expression:
abb
1 .10 .
Write a C program to translate the expression
into post fix notation and
three address code, quadraples, triples and Indirect
triples.
5. Write a program to remove spaces, comment lines,
new lines and produce line numbers. (preliminary
scanning).
Construct a C program to accept a string and check
whether it satisfies the following production rule
(By Using Operator precedence grammar).
S AbB
A aBb
B Bba.
Cut here
Cut here
DE-9541
3
Ws2
6. Write a C program to accept a string and check
whether it satisfies the following production rule
(By using shift reduce parsing).
E E E E E E
Write a C program to construct predictive parsing
table for the following production rule:
S iCt SSI/a
eS/E is empty)
C
Subjects
- .net frame works
- .net lab
- accounting and financial management
- agent based intelligent system
- c-sharp (c#)
- communication skills
- compiler design
- computer applications
- computer networks
- data mining and warehousing
- data warehousing and mining
- distributed computing
- image processing and analysis
- internet programming
- lab : vi — algorithm and shell programming
- lab v — rdbms
- lab vii –– internet programming
- lab viii — network lab
- lab x — compiler design
- lab–ix : visual c++
- middleware technology
- mobile communications
- multimedia systems
- multimedia tools lab
- network lab
- neural networks
- object oriented analysis and design
- open source architecture
- open source programming lab
- operating systems
- rdbms
- resource management techniques
- software engineering
- software project management
- unix and shell programming
- visual programming
- visual programming lab
- web technology
- web technology lab