

MCQOPTIONS
Saved Bookmarks
This section includes 6 Mcqs, each offering curated multiple-choice questions to sharpen your Compilers knowledge and support exam preparation. Choose a topic below to get started.
1. |
Like DFAs, NFAs only recognize regular languages. |
A. | True |
B. | False |
Answer» B. False | |
2. |
Which is the application of NFA? |
A. | A regular language is produced by union of two regular languages |
B. | The concatenation of two regular languages is regular |
C. | The Kleene closure of a regular language is regular |
D. | All of the mentioned |
Answer» E. | |
3. |
The subset construction shows that every NFA accepts a __________ |
A. | String |
B. | Function |
C. | Regular language |
D. | Context-free language |
Answer» D. Context-free language | |
4. |
An NFA may be converted to a DFA using __________ |
A. | Induction |
B. | A construction |
C. | Contradiction |
D. | Compilation |
Answer» C. Contradiction | |
5. |
A regular language corresponds to __________ |
A. | An alphabet |
B. | Set of strings over an alphabet |
C. | A DFA only |
D. | A DFA or an NFA |
Answer» C. A DFA only | |
6. |
Conversion of a DFA to an NFA __________ |
A. | Is impossible |
B. | Requires the subset construction |
C. | Is Chancy |
D. | Is nondeterministic |
Answer» C. Is Chancy | |