IT - Sem IV - AT+Sample Questions
IT - Sem IV - AT+Sample Questions
IT - Sem IV - AT+Sample Questions
Information Technology
Subject Name: Automata Theory Course Code: ITC404
Semester: IV
Multiple Choice Questions
Choose the correct option for following questions. All the Questions
carry equal marks
3. The set of all strings over ∑ ={} in which a single 0 is followed by any
number of 1‟s or a single 1 followed by any number of 0‟s is-----
Option A: 01* + 10*
Option B: 01*10*
Option C: 0*1 + 1*0
Option D: 0*
Option A: ababaabaa
Option B: abbbaa
Option C: abbbaabb
Option D: abbaabbaa
Option A: 0
Option B: 1
Option C: 2
Option D: 3
9. S -> aSa
S->bSb
S->a
S->b
The language generated by the above grammar over the alphabet {a,b} is the
set of
Option A: All Palindromes
Option B: All Odd length Palindromes
Option C: All even length palindromes
Option D: String with null value
12. A Multitape Turing machine is ________ powerful than a single tape Turing
machine.
Option A: More
Option B: Less
Option C: Equal
Option D: Not equal
Option A: Deterministic
Option B: Non-Deterministic
Option C: Finite
Option D: Non-Finite
Option A: An element of G
Option B: Initial stack symbol
Option C: Top stack alphabet
Option D: Head
19. Which of the following is the most general phase structured grammar?
Option A: Regular
Option B: Context-sensitive
Option C: Context free
Option D: Recursive
20. The concept of FSA is much used in this part of the compiler
Option A: Lexical analysis
Option B: Parser
Option C: Code Generation
Option D: Code Optimization
29. DFA designed to accept strings with no more than 2 a‟s can accept:
Option A: abab
Option B: abaa
Option C: baaa
Option D: abababab
35. Which of the following languages are most suitable for implementing context
free languages?
Option A: C
Option B: Perl
Option C: Assembly Language
Option D: Compiler language
39. 0. The lexical analysis for a high level language needs the power of
which one of the following machine models?
Option A: Turing Machine
Option B: Deterministic pushdown automata
Option C: Finite state automata
Option D: Non-Deterministic pushdown automata
43 Let L={ab,aa,baa},then which of the following does not belong to the L*?
Option A: ε
Option B: abab
Option C: abba
Option D: aaabbaa
45. Number of states required to accept the string that ends with 10.
Option A: 1
Option B: 2
Option C: 3
Option D: 4
46. The finite automata is called NFA when there exists____________ for a
specific input from current state to next state.
Option A: More than one paths
Option B: Single path
Option C: No path
Option D: Infinite paths
47. Which of the following is FALSE:
Option A: Any given mealy machine has an equivalent moore machine.
Option B: Any given moore machine has an equivalent mealy machine.
Option C: Mealy and moore machines are FSM with output capability.
Option D: Moore machine does not have an equivalent mealy machine.
53. Which of the following productions are not accepted by Chomsky Grammar?
Option A: A→ABC
Option B: A→BC
Option C: A→a
Option D: A→ ε
Option A: S → aSb | ab | ε
Option B: S→ aaSbb | ε
Option C: S → aaSbb | aabb
Option D: S→aSb | ab
58. Which of the following can accept even palindrome over {a,b}?
Option A: Deterministic Push down Automata
Option B: Turing machine
Option C: NDFA
Option D: DFA
5 marks each
1. Give formal definition of NFA. Construct a DFA equivalent to the NFA:
( {p, q, r, s},{0,1},δ, p, {q,s}), where „δ‟ is given by:
∑ 0 1
Q
→p q,r q
q* r q,r
r s p
s* -- p
4. Construct a DFA that reads a strings made up of {0,1} and accepts only those
strings which end in either „00‟ or „11‟. (transition table and diagram both are
expected)
5. Briefly explain the types of Turing Machine.
6. Construct a Context-free grammar equivalent to the following Push Down
Automata ( described with the help of the given set of equations):
δ (q0, b, Z0 ) = {( q0,ZZ0) }
δ (q0, ε, Z0 ) = {( q0, ε) }
δ (q0, b, Z ) = {( q0,ZZ) }
δ (q0, a, Z ) = {( q1,Z) }
δ (q1, b, Z ) = {( q0, ε) }
δ (q1, a, Z0 ) = {( q0,Z0) }
7. Construct DFA to accept strings that ends with substring 110 for Σ={0,1}
13. Give Regular Expression for a language over the alphabet Σ={a,b} containing
at most two a‟s
14. Convert Following CFG grammar into CNF
Sa→AbB
A→Aa|a
B→bB|b