ISRO CS-2023
August 29, 2024
ISRO CS-2023
August 29, 2024
ISRO CS-2023
August 29, 2024
ISRO CS-2023
August 29, 2024

ISRO CS-2023

Question 64
Consider the NFA with epsilon-transitions below, which is meant to accept strings corresponding to a lexical token id. Here the token digit corresponds to the extended regular expression [0-9]and letter to [a-z A-Zl. In the diagram, a small incoming edge indicates a start state while a double circle indicates a final state. Which of the following extended regular expressions corresponds to the token id?
isro-23-q64
A
letter (letter|digit)*

B
(letter | digit)* letter
C
(letter | digit)*
D
letter (letter* | digit*)
Correct Answer: A

Leave a Reply

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