In lexical analysis, what does pattern recognition primarily refer to?

2025

In lexical analysis, what does pattern recognition primarily refer to?

  1. A.

    Detecting sequences of characters and classifying them into tokens

  2. B.

    Organising syntax tree elements in memory

  3. C.

    Converting source code directly into machine-level instructions

  4. 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.

Explore the full course: Niacl Ao It Specialist