In lexical analysis, what does pattern recognition primarily refer to?
2025
In lexical analysis, what does pattern recognition primarily refer to?
- A.
Detecting sequences of characters and classifying them into tokens
- B.
Organising syntax tree elements in memory
- C.
Converting source code directly into machine-level instructions
- D.
Applying grammar rules to parse the program
Attempted by 40 students.
Show answer & explanation
Correct answer: A
In lexical analysis, pattern recognition primarily refers to detecting character sequences and classifying them into tokens.