FirstRanker Logo

FirstRanker.com - FirstRanker's Choice is a hub of Question Papers & Study Materials for B-Tech, B.E, M-Tech, MCA, M.Sc, MBBS, BDS, MBA, B.Sc, Degree, B.Sc Nursing, B-Pharmacy, D-Pharmacy, MD, Medical, Dental, Engineering students. All services of FirstRanker.com are FREE

Get the MBBS Question Bank Android App

Access previous years' papers, solved question papers, notes, and more on the go!

Install From Play Store

Get the Nursing Question Bank Android App

Access 10+ years of Question Papers with answers, notes for B.Sc Nursing on the go!

Install From Play Store

Download AKTU B-Tech 6th Sem 2017-2018 ECS603 Compiler Design Question Paper

Download AKTU (Dr. A.P.J. Abdul Kalam Technical University (AKTU), formerly Uttar Pradesh Technical University (UPTU) B-Tech 6th Semester (Sixth Semester) 2017-2018 ECS603 Compiler Design Question Paper

This post was last modified on 29 January 2020

AKTU B-Tech Last 10 Years 2010-2020 Previous Question Papers || Dr. A.P.J. Abdul Kalam Technical University


Printed Pages: 02

Paper Id: 110603

Roll No.

--- Content provided by FirstRanker.com ---

Sub Code: ECS603

B. Tech.

(SEM VI) CARRY OVER THEORY EXAMINATION 2017-18

Time: 3 Hours

Compiler Design

--- Content provided by FirstRanker.com ---

Total Marks: 100

Note: 1. Attempt all Sections. If require any missing data; then choose suitably.

2. Any special paper specific instruction.


SECTION A

1. Attempt all questions in brief. 2 x 10 = 20

--- Content provided by‌ FirstRanker.com ---

  1. What is a translator?
  2. Differentiate between a compiler and an assembler.
  3. Discuss conversion of NFA into a DFA. Also give the algorithm used in this conversion.
  4. Write down the short note on symbol table.
  5. Describe Data structure for symbol table.
  6. --- Content provided by​ FirstRanker.com ---

  7. What is mean by Activation record
  8. What is postfix notations?
  9. Define Three address Code
  10. What are Quadruples?
  11. What do you mean by regular expression?
  12. --- Content provided by⁠ FirstRanker.com ---


SECTION B

2. Attempt any three of the following: 10 x 3 = 30

  1. Write down the regular expression for
    1. The set of all strings over {a,b} such that the fifth symbol from the right is a.
    2. The set of all strings over {a,b} such that every block of four consecutive symbols contain at least two zero.
  2. --- Content provided by⁠ FirstRanker.com ---

  3. Construct the NFA for the regular expression a/abb/a*b* by using Thompson's construction methodology.
  4. Eliminate left recursion from the following grammar
    S?AB, A?BS | b, B?SA|a
  5. Discuss conversion of NFA into a DFA. Also give the algorithm used in this conversion.
  6. Explain non-recursive predictive parsing. Consider the following grammar and construct the predictive parsing table

    --- Content provided by​ FirstRanker.com ---

    E?TE'
    E'?+TE' | €
    T?FT'
    T'?*FT' | €
    F?F*|a|b
  7. --- Content provided by‍ FirstRanker.com ---


SECTION C

3. Attempt any one part of the following: 10 x 1 = 10

  1. Give Operator-precedence parsing algorithm. Consider the following grammar and build up operator precedence table. Also parse the input string (id+(id*id))
    E?E+T|T
    T?T*F

    --- Content provided by⁠ FirstRanker.com ---

    F?(E) | id
  2. For the grammar
    S?aAd | bBd | aBe | bAe
    A?f
    B?f

    --- Content provided by​ FirstRanker.com ---

    Construct LR(1) Parsing table. Also draw the LALR table from the derived LR(1) parsing table.

4. Attempt any one part of the following: 10 x 1 = 10

  1. What is postfix notations? translate (C+D)*(E+Y) into postfix using syntax directed translation scheme (STDS)
  2. Consider the following grammar E?E+E | E*E | (E) | id. construct the SLR parsing table and suggest your final parsing table.

5. Attempt any one part of the following: 10 x 1 = 10

--- Content provided by‌ FirstRanker.com ---

  1. Explain logical phase error and syntactic phase error. Also suggest methods for recovery of error.
  2. Generate three address code for C[A[I, j] ] = B[I ,j]+C[A[ I, j ] ]+D[ I + j) (You can assume any data for solving the question, if needed) Assuming that all array elements are integer. Let A and B a 10 X 20 array with low1 = low2 = 1.

6. Attempt any one part of the following: 10 x 1 = 10

  1. Give the algorithm for the elimination of local and global common Sub expression. discuss the algorithm with the help of example also.
  2. Consider the following three address code segments

    --- Content provided by FirstRanker.com ---

    PROD := 0
    I := 1
    T1 := 4*1
    T2 := addr(A)-4
    T3 := T2[T1]

    --- Content provided by FirstRanker.com ---

    T4 := addr(B)-4
    T5 := T4[T1]
    T6 := T3*T5
    PROD := PROD +T6
    If i<=20 goto (3)
    1. Find the basic blocks and flow graph of above sequence.
    2. --- Content provided by FirstRanker.com ---

    3. Optimize the code sequence by applying function preserving transformation and loop optimization technique.

7. Attempt any one part of the following: 10 x 1 = 10

  1. Write short note on
    1. Loop optimization
    2. Global data analysis
    3. --- Content provided by‌ FirstRanker.com ---

  2. Write short note on
    1. Direct acyclic graph
    2. YACC parser generator

FirstRanker.com

--- Content provided by​ FirstRanker.com ---



This download link is referred from the post: AKTU B-Tech Last 10 Years 2010-2020 Previous Question Papers || Dr. A.P.J. Abdul Kalam Technical University

--- Content provided by‍ FirstRanker.com ---