9,389 views
37 37 votes

Which one of the following statements is FALSE?

  1. There exist context-free languages such that all the context-free grammars generating them are ambiguous
  2. An unambiguous context-free grammar always has a unique parse tree for each string of the language generated by it

  3. Both deterministic and non-deterministic pushdown automata always accept the same set of languages

  4. A finite set of string from some alphabet is always a regular language

1 Answer

Best answer
50 50 votes
  1. This is true for inherently ambiguous language
  2. Always correct, that's why called unambiguous
  3. NPDA is a super set of DPDA, hence it's FALSE
  4. Finite language is always regular
• edited by
Answer:
Position:
Show:

Related questions

32 32 votes
8 answers 8 answers
10.3k
10.3k views
Ishrat Jahan asked Nov 2, 2014
10,322 views
In the TCP/IP protocol suite, which one of the following is NOT part of the IP header?Fragment OffsetSource IP addressDestination IP addressDestination port number
48 48 votes
7 answers 7 answers
18.4k
18.4k views
Ishrat Jahan asked Nov 2, 2014
18,373 views
A process executes the following segment of code :for(i = 1; i <= n; i++) fork ();The number of new processes created is$n$$((n(n + 1))/2)$$2^n - 1$$3^n - 1$
57 57 votes
6 answers 6 answers
19.4k
19.4k views
Ishrat Jahan asked Nov 2, 2014
19,372 views
Consider the following C program which is supposed to compute the transpose of a given $4 \times 4$ matrix $M$. Note that, there is an $X$ in the program which indicates ...
31 31 votes
5 answers 5 answers
8.0k
8.0k views
Ishrat Jahan asked Nov 2, 2014
8,027 views
Which one of the following binary trees has its inorder and preorder traversals as $BCAD$ and $ABCD$, respectively?