Exam 2: Formal Languages and Automata Theory: Part B

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

Following syntax-directed translation scheme is used with a shift reduction (bottom up) parser that perform the action in braces immediately after a reduction by the corresponding production A ->aB {print "(1)" A -> c {print "1"), B ->Ab {print *2"}. When parser is aaacbbb, then string printed

(Multiple Choice)
4.8/5
(39)

Let the class of language accepted by finite state machine be L1 and the class of languages represented by regular expressions be L2 then

(Multiple Choice)
5.0/5
(30)

What is the highest type number which can be applied to the following grammar? S ->Aa, A -> Ba, B ->abc

(Multiple Choice)
4.8/5
(42)

TM is more powerful than FSM because

(Multiple Choice)
4.8/5
(46)

Let L1 be a recursive language. Let L2 and L3 be languages that are recursively enumerable but not recursive. Which of the following statements is not necessarily true?

(Multiple Choice)
4.9/5
(40)

If L and L¯ are recursively enumerable, then L is

(Multiple Choice)
4.9/5
(46)

Which of the following statement is wrong?

(Multiple Choice)
4.9/5
(39)

The language accepted by a Push down Automata:

(Multiple Choice)
4.8/5
(41)

For two regular languages L1 = (a + b)* a and L2 = b (a + b ) *, the intersection of L1 and L2 is given by

(Multiple Choice)
4.7/5
(47)

Which statement is true?

(Multiple Choice)
4.9/5
(45)

Which of the following problem is undecidable?

(Multiple Choice)
4.7/5
(35)

The following CFG is in S ? aBB**spaceB ? bAA**spaceA ? a**spaceB ? b

(Multiple Choice)
4.9/5
(43)

Pumping lemma is generally used for proving that

(Multiple Choice)
4.9/5
(33)

Match all items in Group 1 with correct options from those given in Group 2. List I List II**spaceP. Regular Expression 1) Syntax analysis**spaceQ. Push down automata 2) Code Generation**spaceR. Dataflow analysis 3) Lexical analysis**spaceS. Register allocation 4) Code optimization

(Multiple Choice)
4.9/5
(33)

Consider the following statements I. Recursive languages are closed under complementation II. Recursively enumerable languages are closed under union III. Recursively enumerable languages are closed under complementation Which of the above statement are TRUE?

(Multiple Choice)
4.8/5
(40)

All NonNull words of the CFL can be generated by the corresponding CFG which is in CNF i.e the grammar in CNF will generate the same language except the:

(Multiple Choice)
4.7/5
(42)

Which of the following denotes Chomskianhiearchy?

(Multiple Choice)
4.7/5
(44)

Let S and T be language over ={a,b} represented by the regular expressions (a+b*)* and (a+b)*, respectively. Which of the following is true?

(Multiple Choice)
4.9/5
(41)

If PCP is decidable then MPCP is

(Multiple Choice)
4.8/5
(39)

The PDA is called non-deterministic PDA when there are more than one out going edges from……… state:

(Multiple Choice)
5.0/5
(26)
Showing 21 - 40 of 50
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)