GATE | GATE CS 2011 | Question 19 Read Improve Improve Improve Like Article Like Save Article Save Report issue Report 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 QuestionPlease comment below if you find anything wrong in the above post Last Updated : 06 Jan, 2020 Like Article Save Article Previous GATE | GATE CS 2011 | Question 65 Next GATE | GATE CS 2011 | Question 65 Share your thoughts in the comments Add Your Comment Please Login to comment...