GATE CSE · Compiler Design
Generate GATE-level questions covering tokens, lexemes, regular expressions, finite automata (DFA/NFA), lexical errors, and token recognition. Include conversion and identification problems.
45 questions · 0 PYQs · 5 AI practice · GATE CSE 2027
What is the minimum number of states in a DFA that accepts the language L = {w ∈ {a,b}* | w ends with 'ab'}?
Which of the following correctly describes the role of the symbol table in lexical analysis?
The regular expression for floating-point numbers with optional sign, integer part, decimal point, and fractional part in a typical programming language is:
Consider the DFA with states {A, B, C}, initial state A, accepting state C, and transitions: δ(A,0)=B, δ(A,1)=A, δ(B,0)=C, δ(B,1)=A, δ(C,0)=C, δ(C,1)=C. What is the language accepted by this DFA?
In lexical analysis, when a lexer matches multiple token patterns for the same input string, how are conflicts resolved?
Want unlimited AI-generated Lexical Analysis questions?
Sign up free and practice with adaptive difficulty — Easy, Medium, Hard. New questions every session.
Start practising for free →