Question 1 | MCQ
THIS IS QUESTION PAPER FOR THE SUBJECT "DEGREE LEVEL : THEORY OF COMPUTATION
(COMPUTER BASED EXAM)"
ARE YOU SURE YOU HAVE TO WRITE EXAM FOR THIS SUBJECT?
CROSS CHECK YOUR HALL TICKET TO CONFIRM THE SUBJECTS TO BE WRITTEN.
(IF IT IS NOT THE CORRECT SUBJECT, PLS CHECK THE SECTION AT THE TOP FOR THE SUBJECTS REGISTERED BY YOU)
(COMPUTER BASED EXAM)"
ARE YOU SURE YOU HAVE TO WRITE EXAM FOR THIS SUBJECT?
CROSS CHECK YOUR HALL TICKET TO CONFIRM THE SUBJECTS TO BE WRITTEN.
(IF IT IS NOT THE CORRECT SUBJECT, PLS CHECK THE SECTION AT THE TOP FOR THE SUBJECTS REGISTERED BY YOU)
Solution
Consider the DFA
over
with:
-
- Start state
- Accepting states
Transition function
is defined as:

Which of the following statements correctly describes the language accepted by
?
-
- Start state
- Accepting states
Transition function
Which of the following statements correctly describes the language accepted by
Solution
Let
be defined as:

What is the minimum number of states in a DFA recognizing
?
What is the minimum number of states in a DFA recognizing
Solution
Consider the grammar:

For the string
, what is the minimum possible height of a parse tree? (Height = number of nodes on the longest root-to-leaf path, including the
leaf)
For the string
Solution
Consider the language:

Which of the following statements is not True?
Which of the following statements is not True?
Solution
Which of the following problems is undecidable?
Solution
Inscript
Consider the NFA
over
with:
-
- Start state =
- Accepting state
Transition function
is defined as:

Construct the equivalent DFA using subset construction, considering only reachable states. How many states will the resulting DFA have?
Consider the NFA
-
- Start state =
- Accepting state
Transition function
Construct the equivalent DFA using subset construction, considering only reachable states. How many states will the resulting DFA have?
Solution
Inscript
Consider the regular expression over
:

How many distinct strings of length exactly 4 are generated by
?
Consider the regular expression over
How many distinct strings of length exactly 4 are generated by
Solution
Inscript
Consider a Pushdown Automaton (PDA)
defined as follows:
-
-
-
- Start state:
- Initial stack symbol:
-
(acceptance by empty stack)
The transition function
is defined as:
-

-
-
-
That is:
- On reading
, the PDA pushes
onto the stack
- On reading
, it pops
if present; otherwise, the stack remains unchanged
The PDA accepts a string if, after consuming the entire input, the stack contains only the initial symbol
.
How many strings of length exactly 4 are accepted by this PDA?
Consider a Pushdown Automaton (PDA)
-
-
-
- Start state:
- Initial stack symbol:
-
The transition function
-
-
-
-
That is:
- On reading
- On reading
The PDA accepts a string if, after consuming the entire input, the stack contains only the initial symbol
How many strings of length exactly 4 are accepted by this PDA?
Solution
Consider the regular expression over
:

Which of the following strings is/are accepted by
?
Which of the following strings is/are accepted by
Solution
Let
be regular languages over alphabet
.
Define the language:

Which of the following statements is/are TRUE?
Define the language:
Which of the following statements is/are TRUE?
Solution
Consider the language:

Which of the following statements is/are TRUE?
Which of the following statements is/are TRUE?
Solution
Consider the grammar:

Which of the following statements is/are TRUE?
Which of the following statements is/are TRUE?
Solution
Consider a PDA transition:

Which of the following statements is/are TRUE?
Which of the following statements is/are TRUE?
Solution
Consider the language:

Which of the following statements is/are TRUE?
Which of the following statements is/are TRUE?
Solution
Consider the following productions over
:
Which of the following productions do NOT satisfy the rules of a Context-Sensitive Grammar (CSG)?
Which of the following productions do NOT satisfy the rules of a Context-Sensitive Grammar (CSG)?
Solution
Which of the following statements about the CYK algorithm is/are correct?
Solution
Which of the following correctly represents the Chomsky hierarchy (from most powerful to least powerful)?
Solution
Shape
Thickness [ / ]
3
All colors