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

The Language of a Grammar, Inferences & Ambiguity - Free MCQ Practice Test


MCQ Practice Test & Solutions: Test: The Language of a Grammar, Inferences & Ambiguity (10 Questions)

You can prepare effectively for Computer Science Engineering (CSE) Theory of Computation with this dedicated MCQ Practice Test (available with solutions) on the important topic of "Test: The Language of a Grammar, Inferences & Ambiguity". These 10 questions have been designed by the experts with the latest curriculum of Computer Science Engineering (CSE) 2026, to help you master the concept.

Test Highlights:

  • - Format: Multiple Choice Questions (MCQ)
  • - Duration: 10 minutes
  • - Number of Questions: 10

Sign up on EduRev for free to attempt this test and track your preparation progress.

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

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

Detailed Solution: 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: Question 2

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

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

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

Detailed Solution: 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: 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: 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: 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: 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: 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: 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: Question 10

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

18 videos|100 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
18 videos|100 docs|44 tests
Download as PDF