GATE CS 2011 · Question 19 · Compiler Design · Multiple choice (MCQ) · 1 mark · −1/3 for a wrong answer

The lexical analysis for a modern computer language such as Java needs the power of which one of the following machine models in a necessary and sufficient sense?

  1. (A) Finite state automata
  2. (B) Deterministic pushdown automata
  3. (C) Non-deterministic pushdown automata
  4. (D) Turing machine
Answer

Answer (A)

Answer from the official GATE CS 2011 answer key.

The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes