Exam 3: Computational Theory : Grammar, Language, and Complexity
Exam 1: Formal Languages and Automata Theory: Part A50 Questions
Exam 2: Formal Languages and Automata Theory: Part B50 Questions
Exam 3: Computational Theory : Grammar, Language, and Complexity25 Questions
Exam 4: Omputer Science and Theory of Computation25 Questions
Exam 5: Automata and Turing Machines23 Questions
Select questions type
Recursively enumerable languages are not closed under:
Free
(Multiple Choice)
4.7/5
(35)
Correct Answer:
C
Consider the following statements about the context free grammar G = {S - >SS,S - >ab,S ->ba, S - ?}
I. G is ambiguous
II. G produces all strings with equal number of a's and b's
III. G can be accepted by a deterministic PDA.
Which combination below expresses all the true statements about G?
Free
(Multiple Choice)
4.9/5
(39)
Correct Answer:
D
Let S be an NP-complete problem, Q and R be two other problems not known to be in NP. Q is polynomial-time reducible to S and S is polynomial-time reducible to R. Which one of the following statements is true?
Free
(Multiple Choice)
4.8/5
(43)
Correct Answer:
A
Give a production grammar for the language L = {x/x ? (a,b)*, the number of a's in x is multiple of 3}.
(Multiple Choice)
4.8/5
(37)
A FSM can be considered, having finite tape length without rewinding capability and unidirectional tape movement
(Multiple Choice)
4.9/5
(43)
The part of an FA, where the input string is placed before it is run, is called _______
(Multiple Choice)
4.9/5
(42)
Let SHAM3 be the problem of finding a Hamiltonian cycle in a graph G =(V,E)with
divisible by 3 and DHAM3 be the problem of determining if a Hamiltonian cycle exists in such graphs. Which one of the following is true?

(Multiple Choice)
4.8/5
(37)
Let L be any infinite regular language, defined over an alphabet ? then there exist three strings x, y and z belonging to ? such that all the strings of the form XY^ n Z for n=1,2,3, … are the words in L called
(Multiple Choice)
4.9/5
(34)
Which of the following assertions about Turing Machines is true? Blank symbol(s) may occur in the input. At any stage of a computation, there are only finitely many non-blank Symbols on the tape.
(Multiple Choice)
4.8/5
(33)
The regular expression have 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 :
(Multiple Choice)
4.8/5
(29)
For s ? (0+1)* let d(s) denote the decimal value of s(e.g.d(101)) = 5 Let L = {s ? (0+1)* d(s) mod 5=2 and d(s) mod 7 != 4} Which one of the following statements is true?
(Multiple Choice)
4.9/5
(34)
Suppose that a problem A is known to have a polynomial-time verification algorithm. Which of the following statements can be deduced.
(Multiple Choice)
4.9/5
(28)
If an effectively solvable problem has answered in yes or no, then this solution is called
(Multiple Choice)
4.8/5
(32)
Languages are proved to be regular or non regular using pumping lemma.
(Multiple Choice)
4.9/5
(35)
Showing 1 - 20 of 25
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)