Professional Documents
Culture Documents
Question Bank - UPCCCS504 - TOC
Question Bank - UPCCCS504 - TOC
Question Bank - UPCCCS504 - TOC
Unit 1:
1. Describe Finite State Machine? Construct a binary
adder as a FSM?
2. What is mean by Transition Diagram? Design FSM for
a divisibility by 3 tester for decimal numbers and draw
TG & simulation for input of 112 & 1416.
3. Design FSM for a divisibility by 5 tester for decimal
numbers and draw TG for the same.
4. What is mean by Finite Automata? Explain in detail with
the help of TG and notation used in the TG?
5. Define Accepting of a string? Design an FA that reads
string made up with CHARIOT and recognize those
strings that contain CAT as a sub string.
6. Explain DFA and NFA in details?
7. Explain Dead or Trap state and unreachable state with
suitable diagrams?
8. Convert NFA into equivalence DFA: M [{q0, q1}, {0, 1},
δ, q0, {q1}] where δ is a table given here.
Σ 0 1
Q
q0 {q0,q1} {q1}
q1 ɸ {q0,q1}
Unit 2:
17. Define Regular Expression and describe the RE
formalism with parallel, serial and iteration path?
18. Using RE describe the language consisting of all
strings over Σ = {0,1} with at least two consecutive 0’s.
19. Using RE describe the language consisting of all
strings over Σ = {0,1,2} such that every string from the
language contain any numbers of 0’s followed by any
number of 1’s followed by any numbers of 2’s.
20. If L(r) = set of all strings over Σ = {0,1} ending with
011 then find r?
21. Show that (a . b) ≠ a*. b*
22. Show that (a + b) = (a + b)* + (a + b)*
23. Draw NFA with ℇ-moves for the regular expression
r = a . (a + b)*, which represent the language consisting
of string of a’s and b’s, starting with a.
24. Draw NFA with ℇ-moves for the regular expression
r = (a* + b*)
25. Construct a transition graph that recognized the set
r = [1. (00)* . 1 + 0 . 1* . 0]*
26. Construct a DFA that accept the language
represented by 0* . 1* . 2*
27. Explain all sets and their closure properties?
28. Describe the LEEMA properties of RE?
29. Explain all applications of RE & FA?
Unit 3:
30. Define Grammar? Explain formal definition of
grammar along with the notations used for the same?
31. Define and explain the concept of context Free
Grammar?
32. Explain Leftmost Derivation and Rightmost
derivation with an example.
33. Consider the following CFG: G = {(S,A), (a,b), P, S}
34. For the Grammar G which is defined as
a. S aB | b A
b. A a | a S | b A A and
c. B b | b S | a B B, Where S is the starting
symbol, write leftmost and rightmost derivation for
the string “bbaaba”
Unit 4:
- +
a
b
a a
1- 2
a3
+
a
b
b a,b
Unit 5:
0I 1 ;
S
q0 R q1 R q5 N
q1 q0 R q2 R q5 N
q2 q0 R q3 L q5 N
q3 --- 0 q4 R ---
q4 --- q0 R ---
q5 --- --- ---
0I 1 a c
S
α a β R --- --- δR ℇ N (accept)
β R cγL --- R ---
γ L --- αR L ---
δ --- --- --- R ℇ N (accept)
ℇ --- --- --- --- ---
0I 1 ; F T
S
q0 L L q1 R --- ---
q1 ; q2 R ; q4 R T q6 --- ---
N
q2 R R q3 L --- ---
q3 ; q0 L F q6 T q6 --- ---
N N
q4 R R q5 L --- ---
q5 F q6 ; q0 L T q6 --- ---
N N
q6 --- --- --- --- ---
Unit 6: