set-1
1. Let and be regular sets defined over alphabet then
is regular
is not regular
is not regular
is not regular
2. Consider the production of the grammar
Describe the language specified by the production grammar
3. Give a production grammar that specifies the language
None of the above
4. Which of the following string can be obtained by the language
Aaabbbbbb
Abbabbba
aabb
aaaabbbbbb
5. Give a production grammar for the language , the number of ’s in is multiple of 3}
None of the above
6. Let and : the union of and is given by
7. Give a production grammar for the language
None of the above
8. The production grammar is is
Type-3 grammar
Type-1 grammar
Type-3 grammar
Type-0 grammar
9. Which of the following statement is wrong?
A Turing machine cannot solve halting problem
Set of recursively enumerable languages is closed under union
A finite State Machine with 2 stacks
Context sensitive grammar can be recognized by a linearly bounded memory machine
10. Which of the following statement is wrong?
Recursive language are closed under union
Recursive language are closed under union
If a language and its complement are both regular, then the language must be recursive
A language is accepted by FA if and only if it is recursive
11. Which of the following statement is wrong?
Every recursive language is recursively enumerable
A language is accepted by FA if and only if it is context free
Recursive languages are closed under intersection
A language is accepted by a FA if and only if it is right linear
12. Which of the following statement is true?
All language can be generated by CFG
The number of symbols unnecessary to simulate a Turing Machine (TM) with symbols and states is
Any regular language has an equivalent CFG
The class of CFG is not closed under union
13. Recursively enumerable languages are not closed under
Complementation
Intersection
Union
None of the above
14. Regular expression denotes the set
15. Regular expression denotes the set
16. The regular expressions denote a language comprising all possible strings of even length over the alphabet
17. The regular expressions denote zero or more instances of an or is
18. The regular expression has all strings in which any number of 0's is followed by any number of 1's followed by any number of 2's is:
19. The regular expression have all strings of 0's and 1's with no two consecutive 0's, is
20. The regular expression with all strings of 0's and 1's with at least two consecutive 0's is:
21. Which of the following is NOT the set of regular expression
Ababbbbab
Ababbabbbbab
Abbbab
Abababab
22. Which string can be generated by
Aabccd
Abcca
Adabcca
Abababd
23. The regular sets are closed under
Union
Kleene's closure
Concentration
All of the above
24. Which of the following statement(s) is (are) wrong?
The regular sets are closed under intersection
The class of regular sets is closed under substitution
The class of regular sets is closed under homomorphisms
Context sensitive Grammar (CGS) can be recognized by Finite State Machine
25. A Finite State Machine can be considered, having finite tape length without rewinding capability and unidirectional tape movement
Turing machine
Context free languages
Pushdown automata
Regular language
26. Which of the following statement is wrong?
A finite state machine can be considered to be a Turing Machine of finite tape length without rewinding capability and unidirectional tape movement
Turing machine is more powerful than finite state machine because it has the capability to remember arbitrary long sequences of input symbol
Palindromes can't be recognized by any Finite State Machine (FSM) because an FSM can't remember arbitrarily large amount of information
Turing machine is more powerful than FMS because it has no final state
27. Let be a Language recognizable by Finite automation. The Language REVERSE is the reverse of where is
Regular language
Context-free language
Context-sensitive language
Recursively enumerable language
28. The Grammar Where is is
Recursively enumerable language
Regular expression
Context-sensitive language
Context free language
29. Any given transition graph has an equivalent
Regular expression
DFSM (Deterministic Finite State Machine)
NDFSM
All of them
30. The intersection of CFL and regular language
Is always regular
Both (A) and (C) above
Is always context-free
Need not be regular
31. Context-sensitive Grammar can be recognized by
Deterministic pushdown Automata
Non-deterministic pushdown automata
Finite State Machine (FSM)
Linearly Bounded Memory Machine
32. Which of the following regular expression identity's are true?
All of these
33. The Language
Context-sensitive language
Context-free language
Regular languages
Recursively enumerable language
34. Consider the production grammar
Which of the following regular expressions corresponding to the production grammar?
35. Which of the following sentences is generated by production grammar?
Abblod
aabccd
aabd
ababccd
36. Consider a NDFA shown in figure below. The Automation accepts
All words that contain the substring ab and end with a
All words that contain the substring ba and end with a
All words that end with a, but not the null string
All words that end with a, and also the null string
37. Which of the following is accepted by deterministic pushdown machine but not accepted by non-deterministic pushdown machine (NDPDM)?
Strings end with a particular alphabet
All strings in which a given symbol is present at least twice
Even palindrome
None of these
38. Consider the following grammar
Which of the regular expressions describe the same set of strings as the grammar?
39. Which of the following instance of the post correspondence problem have a viable sequence?
None of the above
40. Which of the following statement(s) is (are) correct?
Recursively languages are closed under complementation
If a language and its complement are both recursively enumerable then language is recursive
Set of recursively enumerable language is closed under union
All of these
41. Consider the following FA shown in figure below. The language accepted by the FA is
42. Which of the following statement is wrong
Any regular language has an equivalent context-free grammar
Some non-regular languages can't be generated by any context-free grammar
The intersection of context free languages and a regular language is always context-free
All language can be generated by CFG
43. Consider a grammar
The grammar will generate
Regular language
Context-free language
Context sensitive language
Recursively enumerable language
44. The language constructs which are useful in describing nested structures such as balanced parenthesis
Regular expression
Non-context free grammars
Context-free grammar
None of these
45. A grammar that produce more than one parse free for same sentence is called
Ambiguous
Regular
Unambiguous
None of these
46. Which of the regular expression denotes a language containing all possible strings over the alphabet ?
47. Palindromes can't be recognized by any Finite State Machine because
An FSM can't remember arbitrarily large amount of information
An FSM can't fix the mid-point
FSM can't find whether the second half of the string matches the first half
All of these
48. A language is accepted by FA if and only if it is
Context-free
Recursive
Context sensitive
Right-linear
49. A language is denoted by a regular expression . Which of the following is not a legal string within ?
Yx
yxx
x
xy xyx
50. Can a DFA simulate NFA?
No
Sometimes
Yes
Depends on NFA
Last updated