set-3
101. The set is an example of
Regular language
Non context free language
Context free language
None of these
102. The intersection of CFL and a regular language
Need not be regular
Is always regular
Need not be context free
None of these
103. Choose the correct statements:
The power of DFSM and NDFSM are same.
The power of DFSM and NDFSM are different.
The power of DPDM and NDPDM are different.
Both (A) and (C) above.
104. Which of the following is accepted by an NDPDM but not by a DPDM?
All strings in which a given symbol is present at least twice
Even palindromes.
Strings ending with a particular alphabet.
None of these.
105. Bounded minimization is a technique for
Proving whether a promotive recursive function is Turing computable or not.
Providing whether a primitive recursive function is a total function or not.
Generating primitive recursive functions.
Generating partial recursive functions.
106. Universal Turing machine influenced the concept of
Stored program computers
Interpretive implementation of programming language
Computability
All of these
107. The statement "A Turing machine can't solve halting problem" is
True
Still at open question
False
All of these
108. If there exists a TM which when applied to any problem in the class, terminates, if the correct answer is yes and may or may not terminate otherwise is said to be
Stable
Partially solvable
Unstable
Unstable
109. The vernacular language English, if considered a formal language is a
Regular language
Context sensitive language
Context free language
None of these
110. P, Q, R are three languages, if P and R are regular and if PQ = R then
Q = R
Both A and B
Q = P
None of these
111. Consider the grammar
To get string of n terminals, the number of productions to be used is
N
n + 1
2^n
2^{n-1}
112. The following grammar
CFG
Context sensitive
Regular
None of these
113. Let and . Let then the language and are respectively.
Regular, regular
Regular, not regular
Not regular, regular
Not regular, not regular
114. Which of the following is not possible algorithmically?
Regular grammar to context free grammar
Non-deterministic finite state Automata to deterministic FSA
Non-deterministic PDA to deterministic PDA
None of these
115. As FSM can be used to add two given integers. That is
True
False
May be true
None of these
116. A grammar is said to be in CNF, if all the productions are of the form or . Let be a CFG in CNF. To derive a string of terminals of length , the number of production to be used is
117. In given fig
Both are equivalent
The first FSM accepts nothing
The second FSM accepts -only
None of these
118. The number of tokens in the Fortran statement DO 10 I = 1.25 is
3
4
5
None of these
119. The word 'formal' in formal languages means
The symbols used have well-defined language meaning
They are unnecessary in reality
Only the form of the string of symbols is significant
None of these
120. If , the number of possible strings of length 'n' is
121. A mealy machine
May be machine
Has an equivalent more
Only context-free grammar
All of these
122. The recognizing capability of NDFSM and DFSM
May be different
Must be same
Must be different
None of these
123. Which of the following are not regular
String of 0's whose length is a perfect square
Set of all palindromes made up of 0's and 1's
Strings of 0's, whose length is a prime number
All of these
124. Which of the following pairs of regular expressions are equivalent?
and
and
and
All of these
125. The logic of pumping Lemma is a good example of
The pigeon-hole principle
The divide and conquer technique
Recursion
Iteration
126. The FSM pictured shown in the figure
Mealy machine
Kleene machine
Moore machine
None of these
127. The above machine
Complements a given bit pattern
Generates all strings of 0's and 1's
Adds 1 to a given bit pattern
None of these
128. The language of all words with at least 2a's can be described by the regular expression
All of these
129. For the following figure
Complements a given bit pattern
Finds 2's complement of a given bit pattern
Increment a given bit pattern by 1
Change the sign bit
130. For which of the following applications regular expression can't be used?
Designing compilers
Simulating sequential circuits
Developing text editors
All of these
131. The following CFG
Is equivalent to the regular expression
All of these
132. Any string of terminals that can be generated by the following CFG
Has at least one b
Has no consecutive a's or b's
Should end in an 'a'
Has at least two a's
133. The following CFG
Generates strings of terminals that have
Equal number of a's and b's
Odd number of a's and odd number of b's
Even number of a's and number of b's
Odd number a's and een number of a's
134. The set can be generated by a CFG
135. Which of the following CFG's can't be simulated by an FSM?
None of these
136. CFG is not closed under
Union
Complementation's
Kleene star
Product
137. The set is an example of a grammar that is
Regular
Not context free
Context-free
None of these
138. Let
Of the following the correct answer is
and are not CFL, but is CFL
is a subset of
None of these
139. The intersection of a CFL, and a regular language
Need not be regular
Is always regular
Need not be context free
None of these
140. A PDM behave lie an FSM when the number of auxiliary memory it has is
0
1
2
None of these
141. CSG can be recognized by a
FSM
NDPDM
DPDM
Linearly bounded memory machine
142. An FSM with
A stack is more powerful than a FSM with no stack.
2 stacks is more powerful than a FSM 1 stack
Both (A) and (B) above
None of these
143. Recursive languages are
Closed under intersection
Closed under complementation
Recursively enumerable
All of these
144. If satisfy then is
Even
Odd
Null
None of these
145. Let be given by for every value of then is
One to one not onto
Not one to one and not onto
One to one and onto
Not one to one and onto
146. Let if , find language generated by
147. What is the highest type number which can be applied to the following grammar
Type0
Type1
Type2
Type3
148. Construct a grammar to generate
None of these
149. Which string recognize it?
Information is not complete
150. Regular expression corresponding to the state diagram given in below figure
151. is a
Regular
Accepted by DFA
Not regular
Accepted by PDA
152. Regular expression corresponding to the automata given in figure below are:
153. Grammar is in
LR(1) not in LR(0)
LR(0) but not in LR(1)
Both LR(0) and LR(1)
Neither LR(0) nor in LR(1)
154. The language is a
Regular language
Context-free language
Context-sensitive language
Recursively enumerable language
155. The set can be generated by the CFG
None of these
156. Which of the following CFG's can't be simulated by an FSM?
None of these
157. The set is an example of
Regular language
Non context free language
Context free language
None of these
158. The intersection of CFL and a regular language
Need not be regular
Is always regular
Need not be context free
None of these
159. Choose the correct statements:
The power of DFSM and NDFSM are same.
The power of DFSM and NDFSM are different.
The power of DPDM and NDPDM are different.
Both (A) and (C) above.
160. Which of the following is accepted by an NDPDM but not by a DPDM?
All strings in which a given symbol is present at least twice
Even palindromes.
Strings ending with a particular alphabet.
None of these.
Last updated