Self Studies

Compiler Design...

TIME LEFT -
  • Question 1
    1 / -0

    Generation of intermediate code based on an abstract machine model is useful in compilers because:

  • Question 2
    1 / -0

    Consider the following the statements

    S1: Static allocation bindings do not change at runtime

    S2: Heap allocation allocates and de-allocates storage at run time

    Which of the following statements is/are true?

  • Question 3
    1 / -0

    Consider the productions for the below given grammar?

    S → Q | S # Q

    Q → Q # P | P

    P → R @ P | R

    R → id

    Which of the following is false?

  • Question 4
    1 / -0

    Consider the following C code fragment:

    void main()

    {

    x()

    }

    int x()

    {

    y()

    }

    int y()

     {

    }

    Which of the following statement is correct about activation record?

  • Question 5
    1 / -0

    Consider the following statements:

    (i)  The symbol table contains information about the lexical and the syntactical structure of the program.

    (ii)  Output of the semantic analysis is the annotated parse tree.

    (iii) The intermediate code generator does not use the symbol table.

    (iv) The intermediate code generation and the machine code generation can never be combined in a single step.

    Which of the above statement/s is/are TRUE about the compilation?

  • Question 6
    1 / -0

    Consider the following code segment:

    p = q – r

    s = r + t

    p = s + p

    s = a + s

    What it the minimum number of total variables required to convert the above code segment to static single assignment?

  • Question 7
    1 / -0

    Consider the statement 

    do

    {

    i = i + 1;

    }

    While(a[i] < b);

    The minimum number of temporary variables required in three address code of the above statement is _____.

  • Question 8
    1 / -0

    Choose the equivalent prefix form of the following expression

    (a + (b − c))* ((d − e)/(f + g − h))

  • Question 9
    1 / -0

    Consider the following table:

    A.

    Activation record

    p.

    Linking loader

    B.

    Location counter

    q.

    Garbage collection

    C.

    Reference counts

    r.

    Subroutine call

    D.

    Address relocation

    s.

    Assembler

    Matching A, B, C, D in the same order gives:

Submit Test
Self Studies
User
Question Analysis
  • Answered - 0

  • Unanswered - 9

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
Submit Test
Selfstudy
Selfstudy
Self Studies Get latest Exam Updates
& Study Material Alerts!
No, Thanks
Self Studies
Click on Allow to receive notifications
Allow Notification
Self Studies
Self Studies Self Studies
To enable notifications follow this 2 steps:
  • First Click on Secure Icon Self Studies
  • Second click on the toggle icon
Allow Notification
Get latest Exam Updates & FREE Study Material Alerts!
Self Studies ×
Open Now