Self Studies

Theory of Compu...

TIME LEFT -
  • Question 1
    1 / -0

    If L1 and L2 are context free language, then which of the following is not necessarily a context free language?

  • Question 2
    1 / -0

    Consider the grammar G = {{S, X, Y}, {x, y}, S, P} with P given as

    S → SXSYS | SYSXS | ϵ

    X → x

    Y → y

    generates

  • Question 3
    1 / -0

    The language {ambncm+n | m, n ≥ 1} is:

  • Question 4
    1 / -0

    Which of the following grammar is in Greibach Normal Form?

    A. S → AB, A → a, B → b

    B. S → aA | A → ϵ

    C. S → Aa, A → a

  • Question 5
    1 / -0

    Which of the following statements is true?

    S1: If L is a context-free language and R is a regular language, L-R is not necessarily a context-free language.

    S2: The context-free languages are closed under positive closure.

    S3: The context-free languages are not closed under reversal.

  • Question 6
    1 / -0

    Which of the following language L is/are not a deterministic context free grammar?

    I. L = {wcwr : w ϵ {a, b}*}

    II. L = {anbmcp, n = m or m = p}

    III. L = {wwr : w ϵ {a, b}* }

  • Question 7
    1 / -0

    Consider the following grammars:

    G1 : S → aSb|bSa|aa

    G2 : S → aSb|bSa|SS|λ

    G3 : S → aSb|bSa|SS|a

    G4 : S → aSb|bSa|SS|SSS|λ

    Which of the following is correct w.r.t. the above grammars?

  • Question 8
    1 / -0

    What is the minimum number of productions present in the below given context free grammar to make it Chomsky Normal Form?

    S → XYx

    X → xxy

    Y → Xz

  • Question 9
    1 / -0

    Which of the following is/are false about the context free grammar if L1 is context free language and LR1 be its reversal also L2 is deterministic context free language (DCFL) and LR1 be its reversal language?

    I. LR1 is not a CFL

    II. LR2 is a DFCL

    III. LR1 ∪ LR2 is a CFL

  • Question 10
    1 / -0

    Which of following problems are undecidable?

    I. Membership problem in context-free languages

    II. Whether a given context-free language is regular

    III. Whether a finite state automation halts on all inputs

    IV. Membership problem for type 0 languages

Submit Test
Self Studies
User
Question Analysis
  • Answered - 0

  • Unanswered - 10

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
Submit Test
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