In lexical analysis, what does pattern recognition primarily refer to?
2025
In lexical analysis, what does pattern recognition primarily refer to?
Answer: A. Detecting sequences of characters and classifying them into tokens — In lexical analysis, pattern recognition primarily refers to detecting character sequences and classifying them into tokens.
- 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 158 students.
Show answer & explanation
Correct answer: A
In lexical analysis, pattern recognition primarily refers to detecting character sequences and classifying them into tokens.
Loading lesson…