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?
(A) Finite state automata
(B) Deterministic pushdown automata
(C) Non-Deterministic pushdown automata
(D) Turing Machine
Answer: (A)
Explanation: In lexical analysis finite automata is used to produce tokens in the form of identifiers, keywords and constants from the input program. In the process of pattern recognition, it used to search keywords by using string-matching algorithms.
See https://www.geeksforgeeks.org/automata-theory-set-3/
Quiz of this Question
Recommended Posts:
- GATE | GATE CS 2011 | Question 43
- GATE | GATE CS 2011 | Question 31
- GATE | GATE CS 2011 | Question 30
- GATE | GATE CS 2011 | Question 29
- GATE | GATE CS 2011 | Question 28
- GATE | GATE CS 2011 | Question 27
- GATE | GATE CS 2011 | Question 65
- GATE | GATE CS 2011 | Question 32
- GATE | GATE CS 2011 | Question 42
- GATE | GATE CS 2011 | Question 65
- GATE | GATE CS 2011 | Question 40
- GATE | GATE CS 2011 | Question 39
- GATE | GATE CS 2011 | Question 38
- GATE | GATE CS 2011 | Question 37
- GATE | GATE CS 2011 | Question 36
- GATE | GATE CS 2011 | Question 65
- GATE | GATE CS 2011 | Question 34
- GATE | GATE CS 2011 | Question 33
- GATE | GATE CS 2011 | Question 25
- GATE | GATE CS 2011 | Question 22
Improved By : madarsh986

