GATE Assistant

Past questions › Computer Science and Information Technology › GATE 2026 set2

GATE 2026 set2 · CS · NAT · 1 mark · Compiler Design › Lexical Analysis

GATE 2026 set2 Computer Science and Information Technology question: A lexical analyzer uses the following token definitions letter [A-Za-z] digit [0-9] id…

A lexical analyzer uses the following token definitions

For the string given below,

x1 23mm 78 y 7z zz5 14A 8H AaYcD

the number of tokens (excluding ) that will be produced by the lexical analyzer is __________. (answer in integer)

Show answer

Official answer: 13

Practise this question with exam-style marking

Discussion

No discussion yet.

Join the discussion