Which of the following best describes Lexical pattern matching?
Difficulty: Medium
- A. A program that loads an executable file into memory and prepares it for execution.
- B. A technique that compiles code into machine instructions at runtime rather than before execution.
- C. The use of regular expressions by a lexical analyzer to define and recognize valid tokens. ✓
- D. A code optimization technique that examines a small set of adjacent instructions to replace them with a more efficient sequence.
Correct answer
C. The use of regular expressions by a lexical analyzer to define and recognize valid tokens.
Correct answer
Source: Compiler Design Official Reference Guide
Tags: computer science, compiler design, compilers, programming languages
Submitted by: MCQsHub Editorial
Related MCQs
- What is the name for the use of regular expressions by a lexical analyzer to define and recognize valid tokens...
- Just-in-time (JIT) compilation is best defined as which of the following?
- Which term refers to a property of a formal grammar where a single string can be produced by more than one dis...
- A code optimization technique that examines a small set of adjacent instructions to replace them with a more e...
- Select the accurate description of Top-down parsing.
- Choose the correct description of Peephole optimization.