GATE Assistant

Past questions › Computer Science and Information Technology › GATE 2023

GATE 2023 · CS · MCQ · 1 mark · Theory of Computation › Regular Languages & Finite Automata

GATE 2023 Computer Science and Information Technology question: Consider the following definition of a lexical token id for an identifier in a…

Consider the following definition of a lexical token id for an identifier in a programming language, using extended regular expressions:

Which one of the following Non-deterministic Finite-state Automata with -transitions accepts the set of valid identifiers? (A double-circle denotes a final state)

  1. (A)

    option

  2. (B)

    option

  3. (C)

    option

  4. (D)

    option

Show answer

Official answer: C

Practise this question with exam-style marking

Discussion

No discussion yet.

Join the discussion