250+ TOP MCQs on Transformation from NFA to DFA and Answers

Compilers Multiple Choice Questions on “Transformation from NFA to DFA”.

1. Can a DFA simulate NDFA?
a) No
b) Yes
c) Sometimes
d) Depends on NDFA

Answer: b
Clarification: Yes it can be done through power set construction.

2. Find the wrong statement?
a) The language accepted by finite automata are the languages denoted by regular expression
b) Every DFA has a regular expression denoting its language
c) For a regular expression r, there does not exists NDFA with L® ant transit that accept
d) None of the mentioned

Answer: c
Clarification: The vice versa is true.

3. Regular expression a/b denotes which of the following set?
a) {a}
b) {€,a,b}
c) {a,b}
d) {ab}

Answer: c
Clarification: Either a is the output or b hence it’s {a, b}.

4. Which behaviour of a NFA can be stimulated by DFA?
a) Always
b) Sometimes
c) Never
d) Depends on NFA

Answer: a
Clarification: It can be done through power set construction.

5. For any DFA state {qi,qj…qm} If some qj is a final state in the NFA Then {qi,qj…qm}, is a final state in the DFA.
a) True
b) False

Answer: a
Clarification: It the standard procedure to convert NFA to DFA.

6. What is the relation between NFA-accepted languages and DFA accepted languages?
a) >
b) <
c) =
d) <=

Answer: c
Clarification: The no of languages accepted by NFA and DFA is equal.

7. In regular expressions, the operator ‘*’ stands for?
a) Concatenation
b) Selection
c) Iteration
d) Addition

Answer: c
Clarification: It indicates iterations which can vary from zero to any number.

  250+ TOP MCQs on Error Recovery in LR phase and Answers

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top