Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Tests  >  Theory of Computation  >  Test: The Language of a Grammar, Inferences & Ambiguity - Computer Science Engineering (CSE) MCQ

Test: The Language of a Grammar, Inferences & Ambiguity - Computer Science Engineering (CSE) MCQ


Test Description

10 Questions MCQ Test Theory of Computation - Test: The Language of a Grammar, Inferences & Ambiguity

Test: The Language of a Grammar, Inferences & Ambiguity for Computer Science Engineering (CSE) 2024 is part of Theory of Computation preparation. The Test: The Language of a Grammar, Inferences & Ambiguity questions and answers have been prepared according to the Computer Science Engineering (CSE) exam syllabus.The Test: The Language of a Grammar, Inferences & Ambiguity MCQs are made for Computer Science Engineering (CSE) 2024 Exam. Find important definitions, questions, notes, meanings, examples, exercises, MCQs and online tests for Test: The Language of a Grammar, Inferences & Ambiguity below.
Solutions of Test: The Language of a Grammar, Inferences & Ambiguity questions in English are available as part of our Theory of Computation for Computer Science Engineering (CSE) & Test: The Language of a Grammar, Inferences & Ambiguity 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: The Language of a Grammar, Inferences & Ambiguity | 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: The Language of a Grammar, Inferences & Ambiguity - Question 1

Which of the following is not a notion of Context free grammars?

Detailed Solution for Test: The Language of a Grammar, Inferences & Ambiguity - Question 1

The following are the notions to express Context free grammars:
a) Recursive Inferences
b) Derivations
c) Sentential form
d) Parse trees

Test: The Language of a Grammar, Inferences & Ambiguity - Question 2

State true or false:Statement: The recursive inference procedure determines that string w is in the language of the variable A, A being the starting variable.

Detailed Solution for Test: The Language of a Grammar, Inferences & Ambiguity - Question 2

We apply the productions of CFG to infer that certain strings are in the language of a certain variable.

1 Crore+ students have signed up on EduRev. Have you? Download the App
Test: The Language of a Grammar, Inferences & Ambiguity - Question 3

Which of the following is/are the suitable approaches for inferencing?

Detailed Solution for Test: The Language of a Grammar, Inferences & Ambiguity - Question 3

Two inference approaches:
1. Recursive inference, using productions from body to head
2. Derivations, using productions from head to body

Test: The Language of a Grammar, Inferences & Ambiguity - Question 4

 If w belongs to L(G), for some CFG, then w has a parse tree, which defines the syntactic structure of w. w could be:

Detailed Solution for Test: The Language of a Grammar, Inferences & Ambiguity - Question 4

Parse trees are an alternative representation to derivations and recursive inferences. There can be several parse trees for the same string.

Test: The Language of a Grammar, Inferences & Ambiguity - Question 5

 Is the following statement correct?Statement: Recursive inference and derivation are equivalent.

Detailed Solution for Test: The Language of a Grammar, Inferences & Ambiguity - Question 5

Yes, they are equivalent. Both the terminologies represent the two approaches of recursive inferencing.

Test: The Language of a Grammar, Inferences & Ambiguity - Question 6

 A->aA| a| bThe number of steps to form aab:

Detailed Solution for Test: The Language of a Grammar, Inferences & Ambiguity - Question 6

 A->aA=>aaA=>aab

Test: The Language of a Grammar, Inferences & Ambiguity - Question 7

An expression is mentioned as follows. Figure out number of incorrect notations or symbols, such that a change in those could make the expression correct.
L(G)={w in T*|S→*w}

Detailed Solution for Test: The Language of a Grammar, Inferences & Ambiguity - Question 7

For the given expression, L(G)={w in T*|S→*w}, If G(V, T, P, S) is a CFG, the language of G, denoted by L(G), is the set of terminal strings that have derivations from the start symbol.

Test: The Language of a Grammar, Inferences & Ambiguity - Question 8

 The language accepted by Push down Automaton:

Detailed Solution for Test: The Language of a Grammar, Inferences & Ambiguity - Question 8

Push down automata accepts context free language.

Test: The Language of a Grammar, Inferences & Ambiguity - Question 9

Which among the following is the correct option for the given grammar?
G->X111|G1,X->X0|00

Detailed Solution for Test: The Language of a Grammar, Inferences & Ambiguity - Question 9

Using the recursive approach, we can conclude that option a is the correct answer, and its not possible for a grammar to have more than one language.

Test: The Language of a Grammar, Inferences & Ambiguity - Question 10

Choose the correct option:
Statement 1: Recursive Inference, using productions from head to body.
Statement 2: Derivations, using productions from body to head.

Detailed Solution for Test: The Language of a Grammar, Inferences & Ambiguity - Question 10

 Both the statements are false. Recursive Inference, using productions from body to head. Derivations, using productions from head to body.

18 videos|69 docs|44 tests
Information about Test: The Language of a Grammar, Inferences & Ambiguity Page
In this test you can find the Exam questions for Test: The Language of a Grammar, Inferences & Ambiguity solved & explained in the simplest way possible. Besides giving Questions and answers for Test: The Language of a Grammar, Inferences & Ambiguity, 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)