Test your basic knowledge on compiler design

Predictive parsers can be________?
Recursive
Non-recursive
Both Recursive & Non-recursive
None of the above
Intermediate code generation phase gets input from_______?
Lexical analyzer
Semantic analyzer
Syntax analyzer
Error handler
Which of the following is not a three address code?
a=-c
a=b+c
a=d
None of the above
Three address codes are implemented using?
Quadruples
Triples
Indirect triples
All of the above
An example of intermediate language is_____?
SNOBOL
COBOL
PASCAL
UNCOL
Code generator gives _______?
Final or target code
Source code
Opcode
Machine code
Input to code generator is _______?
Source code
Target code
Intermediate code
All of the above
Code can be optimized at_______?
Source from the user
Intermediate code
Target code
All of the above
We can optimize code by______?
Dead code elimination
Copy intermediate loop
Common sub programs
Loop declarations
Data flow analysis was used in ______?
Frotran
C
C++
PL/1
Description:

This test is a very interesting collection of questions in the form of MCQ where the test-takers get an opportunity to check their performance to appear in UGC, NET ( Computer Science)

Discussion

Gate-Exam Admin

GATE COMPUTER SCIENCE & INFORMATION TECHNOLOGY, COMPILER DESIGN QUESTIONS & ANSWERS
http://gate-exam.in/CS/Syllabus/Computer-Science-Information-Technology/Compiler-Design

2071 days 20 minutes ago

Your Facebook Friends on WizIQ

More Tests By Author

ASP Server Controls
10 Questions | 667 Attempts

ASP.NET, Namespaces ASP.NET
10 Questions | 2028 Attempts

An ASP.NET Application
10 Questions | 437 Attempts