Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Tests  >  Test: DPDA & Context Free Languages - Computer Science Engineering (CSE) MCQ

Test: DPDA & Context Free Languages - Computer Science Engineering (CSE) MCQ


Test Description

10 Questions MCQ Test - Test: DPDA & Context Free Languages

Test: DPDA & Context Free Languages for Computer Science Engineering (CSE) 2024 is part of Computer Science Engineering (CSE) preparation. The Test: DPDA & Context Free Languages questions and answers have been prepared according to the Computer Science Engineering (CSE) exam syllabus.The Test: DPDA & Context Free Languages 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 & Context Free Languages below.
Solutions of Test: DPDA & Context Free Languages questions in English are available as part of our course for Computer Science Engineering (CSE) & Test: DPDA & Context Free Languages solutions in Hindi for Computer Science Engineering (CSE) 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 & Context Free Languages | 10 questions in 10 minutes | Mock test for Computer Science Engineering (CSE) preparation | Free important questions MCQ to study for Computer Science Engineering (CSE) Exam | Download free PDF with solutions
Test: DPDA & Context Free Languages - Question 1

Context free grammar is called Type 2 grammar because of ______________ hierarchy.

Detailed Solution for Test: DPDA & Context Free Languages - Question 1

 Chomsky hierarchy decide four type of language :Type 3- Regular Language, Type 2-Context free language, Type 1-Context Sensitive Language, Type 0- Unrestricted or Recursively Ennumerable language.

Test: DPDA & Context Free Languages - Question 2

a→bRestriction: Length of b must be atleast as much length of a.Which of the following is correct for the given assertion?

Detailed Solution for Test: DPDA & Context Free Languages - Question 2

A context-sensitive grammar (CSG) is a formal grammar in which the left-hand sides and right-hand sides of any production rules may be surrounded by a context of terminal and non terminal symbols. Context-sensitive grammars are more general than context-free grammars, in the sense that there are some languages that cannot be described by context-free grammars, but can be described by CSG.

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

 From the definition of context free grammars,
G=(V, T, P, S)
What is the solution of VÇT?

Detailed Solution for Test: DPDA & Context Free Languages - Question 3

 V is the set of non terminal symbols while T is the st of terminal symbols, their intersection would always be null.

Test: DPDA & Context Free Languages - Question 4

If P is the production, for the given statement, state true or false.P: V->(V∑T)* represents that the left hand side production rule has no right or left context.

Detailed Solution for Test: DPDA & Context Free Languages - Question 4

 Here the production P is from the definition of Context free grammar and thus, has no right or left context.

Test: DPDA & Context Free Languages - Question 5

There exists a Context free grammar such that:X->aXWhich among the following is correct with respect to the given assertion?

Detailed Solution for Test: DPDA & Context Free Languages - Question 5

The grammar with right recursive production is known as Right recursive grammar. Right recursive production is of the form X->aX where a is a terminal and X is a non terminal.

Test: DPDA & Context Free Languages - Question 6

 If the partial derivation tree contains the root as the starting variable, the form is known as:

Detailed Solution for Test: DPDA & Context Free Languages - Question 6

Example: For any grammar, productions be:
S->AB
A->aaA| ^
B->Bb| ^
The partial derivation tree can be drawn as:

 

Test: DPDA & Context Free Languages - Question 7

Find a regular expression for a grammar which generates a language which states :
L contains a set of strings starting wth an a and ending with a b, with something in the middle.

Detailed Solution for Test: DPDA & Context Free Languages - Question 7

The grammar for the same language can be stated as :
(1) S → aMb
(2) M → A
(3) M → B
(4) A → e
(5) A → aA
(6) B → e
(7) B → bB

Test: DPDA & Context Free Languages - Question 8

Which of the following is the correct representation of grammar for the given regular expression?
a(aUb)*b

Detailed Solution for Test: DPDA & Context Free Languages - Question 8

The basic idea of grammar formalisms is to capture the structure of string by
a) using special symbols to stand for substrings of a particular structure
b) using rules to specify how the substrings are combined to form new substrings.

Test: DPDA & Context Free Languages - Question 9

A CFG consist of the following elements:

Detailed Solution for Test: DPDA & Context Free Languages - Question 9

A CFG consists of:
a) a set of terminals, which are characters of alphabets that appear in the string generated by the grammar.
b) a set of non terminals, which are placeholders for patterns of terminal symbols that can be generated by the nonterminal symbols.
c) a set of productions, which are set of rules to transit from one state to other forming up the string
d) a start symbol, a special non terminal symbol that appears in the initial string generated in the grammar.

Test: DPDA & Context Free Languages - Question 10

A CFG for a program describing strings of letters with the word “main” somewhere in the string:

Detailed Solution for Test: DPDA & Context Free Languages - Question 10

None.

Information about Test: DPDA & Context Free Languages Page
In this test you can find the Exam questions for Test: DPDA & Context Free Languages solved & explained in the simplest way possible. Besides giving Questions and answers for Test: DPDA & Context Free Languages, EduRev gives you an ample number of Online tests for practice

Top Courses for Computer Science Engineering (CSE)

Download as PDF

Top Courses for Computer Science Engineering (CSE)