Explore topic-wise MCQs in Compilers.

This section includes 2 Mcqs, each offering curated multiple-choice questions to sharpen your Compilers knowledge and support exam preparation. Choose a topic below to get started.

1.

The definition of a language L with alphabet {a} is given as following. L = { ank | k > 0, and n is a positive integer constant} What is the minimum number of states needed in a DFA to recognize L?

A. k+1
B. n+1
C. 2n+1
D. 2k+1
Answer» C. 2n+1
2.

Is empty string a valid input in Ndfa.

A. True
B. False
Answer» B. False