Compiler Design Multiple Choice Questions and Answers - 1
Question: 1
The lexical analyzer takes ____ as input and produces a list of ___ of output.
(A) Machine code, mnemonic
(B) Tokens, source code
(C) Source code, tokens
(D) Both a and b
Ans: C
Source code, tokens
Question: 2
Linear analysis is called ____ in a compiler.
(A) Lexical analysis
(B) Scanning
(C) Testing
(D) Both a and b
Ans: D
Both a and b
Question: 3
Lexical analysis is about breaking a sequence of characters into
(A) Tokens
(B) Lines
(C) Groups
(D) Packets
Ans: A
Tokens
Question: 4
The phase Syntax Analysis is modeled on the basis of
(A) High level language
(B) Low level language
(C) Context free grammar
(D) Regular grammar
Ans: C
Context free grammar
Question: 5
Compiler is a program that
(A) Accepts a program written in a high level language and produces an object program
(B) Appears to execute a source program as if it were machine language
(C) Automates the translation of assembly language into machine language
(D) Places programs into memory and prepares them for execution
Ans: A
Accepts a program written in a high level language and produces an object program
- Top 150+ Compiler Design MCQ Questions and Answers
- Compiler Design Multiple Choice Questions and Answers
- Compiler Design Objective Questions and Answers
- Compiler Design Quiz Questions and Answers
- Compiler Design Questions and Answers for Gate 2020-2021
- Compiler Design Online Test Question Bank with Answers
- Compiler Design Lab Exam Practical Viva Questions and Answers Pdf
- 1000+ Compiler Construction MCQS with Answers Pdf
- 1000+ Compiler Design GATE Questions and Answers Pdf
- 1000+ Compiler Construction Exam Questions and Answers
- 1000+ Compiler Design Interview Questions and Answers Pdf
GATE Chemical Engineering Questions and Answers More
GATE 2024-2025 Question Paper Pdf Download More
Banking Awareness Questions 2024-2025 More
Computer Quiz Questions for Bank Exams More
Computer Quiz Questions for Bank Exams More
Zoology Quiz Questions and Answers More
1000+ Silicon Valley Bank Aptitude Test Questions and Answers Pdf More
Top 50+ Advanced Java Interview Questions 2020-2021 More
MS Powerpoint Objective Questions and Answers More
100+ Gk Questions on Climate, Weather, Climatology Questions More