Principles of Compiler Design

DOWNLOAD FREE PDF <<CLICK HERE>>

Principles of Compiler Design

Congratulations - you have completed Principles of Compiler Design.

You scored %%SCORE%% out of %%TOTAL%%.

Your performance has been rated as %%RATING%%


Your answers are highlighted below.
Question 1 [CLICK ON ANY CHOICE TO KNOW MCQ multiple objective type questions 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 MCQ multiple objective type questions 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 MCQ multiple objective type questions 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 MCQ multiple objective type questions 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 MCQ multiple objective type questions 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 MCQ multiple objective type questions RIGHT ANSWER]
Any finite sequence of alphabets.

A
Alphabets
B
Strings
C
Numbers
D
Special Symbols
Question 7 [CLICK ON ANY CHOICE TO KNOW MCQ multiple objective type questions 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 MCQ multiple objective type questions 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 MCQ multiple objective type questions 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 MCQ multiple objective type questions 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
Once you are finished, click the button below. Any items you have not completed will be marked incorrect. Get Results
There are 10 questions to complete.

DOWNLOAD FREE PDF <<CLICK HERE>>