Free Online Directory Regular Expressions and Finite Automata MCQs - MCQs Answers

Regular Expressions and Finite Automata MCQs

10 min Score: 0 Attempted: 0/10 Subscribe
1. Which of the following is true about regular expressions?





2. What is the purpose of a finite automaton in the context of lexical analysis?





3. Which of the following symbols is used in regular expressions to represent “zero or more occurrences” of the preceding element?





4. What is the primary difference between a deterministic finite automaton (DFA) and a non-deterministic finite automaton (NFA)?





5. Which of the following is a valid regular expression to match a string that starts with “a” and ends with “b”?





6. In a regular expression, what does the symbol “+” represent?





7. Which of the following statements is true about the relation between regular expressions and finite automata?





8. Which of the following is NOT a valid regular expression?





9. What is the main advantage of using a deterministic finite automaton (DFA) over a non-deterministic finite automaton (NFA)?





10. Which of the following best describes a regular language in terms of finite automata?





Leave a Comment

All copyrights Reserved by MCQsAnswers.com - Powered By T4Tutorials