Self Studies

Compiler Design...

TIME LEFT -
  • Question 1
    1 / -0

    Which of the following statement is true?

  • Question 2
    1 / -0

    Consider the following grammar in which start symbol = {S}, Non Terminal symbol = {A, B, C, D} and Terminal symbol = {a, p, q, r, s, ϵ}. 

    S → A B | p r C | C q 

    A → a S | C

    B → q | ϵ

    C → r | ϵ

    D → B s | ϵ  

    Find the number of terminals in the FIRST(S)?

  • Question 3
    1 / -0

    Input taken by semantic analyzer and output produces by semantic analyzer are

  • Question 4
    1 / -0

    Which of the following statements is/are true about the parser?

    A. Leftmost derivation is used for Bottom-up parser.

    B. Rightmost in reverse derivation is used by LL parser.

  • Question 5
    1 / -0

    Consider the below given augmented grammar:

    A' → A

    A → a B b | num

    B → B c A | A | @

    If C0 = CLOSURE ({[A' → •A]}) then the number of items in the set GOTO (C0, a) is ______

  • Question 6
    1 / -0

    Consider the following grammar:

    S → aS'

    S' → aS' | ϵ 

    Above grammar is

    I. not left recursive

    II. not ambiguous

    III. LL(1) 

    Which of the following is/are true?

  • Question 7
    1 / -0

    Consider the grammar given below:

    X → Px

    P → RQ | R

    Q → y | w | ε

    R → z | ε

    Let x, y, z, w, and $ be indexed as follows:

    X

    y

    Z

    w

    $

    1

    2

    3

    4

    5

     

    Compute the FOLLOW set of the non-terminal R and write the index values for the symbols in the FOLLOW set in the ascending order. (For example, if the FOLLOW set is {x, y, z, w, $}, then the answer should be 12345)

Submit Test
Self Studies
User
Question Analysis
  • Answered - 0

  • Unanswered - 7

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
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