Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Tests  >  Theory of Computation  >  Test: DPDA & Ambiguous Grammars - Computer Science Engineering (CSE) MCQ

Test: DPDA & Ambiguous Grammars - Computer Science Engineering (CSE) MCQ


Test Description

10 Questions MCQ Test Theory of Computation - Test: DPDA & Ambiguous Grammars

Test: DPDA & Ambiguous Grammars for Computer Science Engineering (CSE) 2024 is part of Theory of Computation preparation. The Test: DPDA & Ambiguous Grammars questions and answers have been prepared according to the Computer Science Engineering (CSE) exam syllabus.The Test: DPDA & Ambiguous Grammars MCQs are made for Computer Science Engineering (CSE) 2024 Exam. Find important definitions, questions, notes, meanings, examples, exercises, MCQs and online tests for Test: DPDA & Ambiguous Grammars below.
Solutions of Test: DPDA & Ambiguous Grammars questions in English are available as part of our Theory of Computation for Computer Science Engineering (CSE) & Test: DPDA & Ambiguous Grammars solutions in Hindi for Theory of Computation course. Download more important topics, notes, lectures and mock test series for Computer Science Engineering (CSE) Exam by signing up for free. Attempt Test: DPDA & Ambiguous Grammars | 10 questions in 10 minutes | Mock test for Computer Science Engineering (CSE) preparation | Free important questions MCQ to study Theory of Computation for Computer Science Engineering (CSE) Exam | Download free PDF with solutions
Test: DPDA & Ambiguous Grammars - Question 1

CFGs are more powerful than:

Detailed Solution for Test: DPDA & Ambiguous Grammars - Question 1

Context-free grammars are strictly more powerful than regular expressions:
1) Any language that can be generated using regular expressions can be generated by a context-free grammar.
2) There are languages that can be generated by a context-free grammar that cannot be generated by any regular expression.
As a corollary, CFGs are strictly more powerful than DFAs and NDFAs.

Test: DPDA & Ambiguous Grammars - Question 2

State true or false:S-> 0S1|01Statement: No regular expression exists for the given grammar.

Detailed Solution for Test: DPDA & Ambiguous Grammars - Question 2

 The grammar generates a language L such that L={0n1n|n>=1} which is not regular. Thus, no regular expression exists for the same.

1 Crore+ students have signed up on EduRev. Have you? Download the App
Test: DPDA & Ambiguous Grammars - Question 3

 For the given set of code, the grammar representing real numbers in Pascal has error in one of the six lines. Fetch the error.
(1) -> 
(2) -> | epsilon
(3) -> | epsilon
(4) -> ‘E’ | epsilon
(5) -> + | – | epsilon
(6) -> 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9

Detailed Solution for Test: DPDA & Ambiguous Grammars - Question 3

–> 
–> | epsilon
–> ‘.’ | epsilon
–> ‘E’ | epsilon
–> + | – | epsilon
–> 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9

Test: DPDA & Ambiguous Grammars - Question 4

Which among the following is incorrect with reference to a derivation tree?

Detailed Solution for Test: DPDA & Ambiguous Grammars - Question 4

The root or interms of the grammar, starting variable can not be a terminal.

Test: DPDA & Ambiguous Grammars - Question 5

Let G=(V, T, P, S)
where a production can be written as:
S->aAS|a
A->SbA|ba|SS
Which of the following string is produced by the grammar?

Detailed Solution for Test: DPDA & Ambiguous Grammars - Question 5

he step wise grammar translation can be written as:
aAS->aSbaA->aabAS->aabbaa

Test: DPDA & Ambiguous Grammars - Question 6

Statement 1: Ambiguity is the property of grammar but not the language.
Statement 2: Same language can have more than one grammar.
Which of the following options are correct with respect to the given statements?

Detailed Solution for Test: DPDA & Ambiguous Grammars - Question 6

One language can more than one grammar. Some can be ambiguous and some cannot.

Test: DPDA & Ambiguous Grammars - Question 7

Which of the following are non essential while simplifying a grammar?

Detailed Solution for Test: DPDA & Ambiguous Grammars - Question 7

Here are some process used to simplify a CFG but to produce an equivalent grammar:
a) Removal of useless symbols(non terminal) b) Removal of Unit productions and c) Removal of Null productions.

Test: DPDA & Ambiguous Grammars - Question 8

Which of the following are context free language?

Detailed Solution for Test: DPDA & Ambiguous Grammars - Question 8

None.

Test: DPDA & Ambiguous Grammars - Question 9

The language L ={ai2bi|i>=0} is:

Detailed Solution for Test: DPDA & Ambiguous Grammars - Question 9

The language is recursive and every recursive language is a CFL.

Test: DPDA & Ambiguous Grammars - Question 10

 L->rLt|tLr|t|r
The given grammar produces a language which is:

Detailed Solution for Test: DPDA & Ambiguous Grammars - Question 10

As there exists no production for the palindrome set, even palindromes like abba, aabbaa, baaaaaab, etc will not be generated.

18 videos|69 docs|44 tests
Information about Test: DPDA & Ambiguous Grammars Page
In this test you can find the Exam questions for Test: DPDA & Ambiguous Grammars solved & explained in the simplest way possible. Besides giving Questions and answers for Test: DPDA & Ambiguous Grammars, EduRev gives you an ample number of Online tests for practice

Top Courses for Computer Science Engineering (CSE)

18 videos|69 docs|44 tests
Download as PDF

Top Courses for Computer Science Engineering (CSE)