Principles of Compiler Design

YOU CAN DOWNLOAD 200+ SUBJECTS PDF BOOK FOR COMPETITIVE EXAMINATIONS

CLICK HERE TO DOWNLOAD

Principles of Compiler Design

Question 1 [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Consider the regular expression 0 * (10 *) which is similar to the same set as

A
0 + (0 + 10) *
B
(0 +1) * 10 (0 + 1) *
C
(1 * 0) * 1*
D
None of the above
Question 2 [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Output file of Lex is ..... the input file is Myfile?

A
Myfile.e
B
Myfile.yy.c
C
Myfile.lex
D
Myfile.obj
Question 3 [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]

What are x and y in the following macro definition?

14.00 Normal 0 false false false EN-US X-NONE X-NONE

macro
Add xXXXYYY y
Load y
Mul x
Store y
end macro




A
a) variables
B
b) identifiers
C
c) actual parameters
D
d) formal parameters
Question 4 [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
What are the properties of RISC?
A
Small instruction set
B
correctchoice Each instruction is one line of machine code
C
Used in everyday devices
D
Instructions are built into hardware
Question 5 [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Compiler can check ..... error.

A
Logical
B
Syntax
C
Both A and B
D
None
Question 6 [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Any finite sequence of alphabets.

A
Alphabets
B
Strings
C
Numbers
D
Special Symbols
Question 7 [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
A computer program that links and merges various object files together in order to make an executable file.

A
Assembler
B
Compiler
C
Interpreter
D
LInker
Question 8 [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which of the following groups is/are token together into semantic structures?

A
Syntax analyzer
B
Intermediate code generation
C
Lexical analyzer
D
Semantic analyzer
Question 9 [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
An optimizer Compiler .....

A
a) Is optimized to occupy less space
B
b) Is optimized to occupy less space & Optimize the code
C
c) Optimize the code
D
d) None of the mentioned
Question 10 [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Stage of compilation that removes redundant code and replaces inefficient code.

A
Lexical Analysis
B
Syntax Analysis
C
Semantic Analysis
D
Code Optimisation
There are 10 questions to complete.