Learn and practice Aptitude questions and answers with explanation for interview, competitive exam (Pariksha Corner )

Compiler Design



Friday, January 24, 2020

Any position independent code is best written using which of

Any position independent code is best written using which of the following addressing modes ?
AAbsolute
BDirect
CIndirect
DRelative.
View Answer

All compilers are designed to be

All compilers are designed to be
Arecursive
Bserially usable
Cself correcting
Dre-entrant.
View Answer

Generation of intermediate code based on an abstract machine

Generation of intermediate code based on an abstract machine model is useful in compilers because
Ait makes the implementation of lexical analysis and syntax analysis easier
Bsyntax directed translations can be written for intermediate code generation
Cit enhances the portability of the front end of the compiler
Dit is not possible to directly generate code for real machines.
View Answer

Recursive descent parsing is an example of

Recursive descent parsing is an example of
Atop down parsing
Bbottom up parsing
Cpredictive parsing
Dheuristic parsing.
View Answer

In an absolute loading scheme, the assembler, in addition to

In an absolute loading scheme, the assembler, in addition to its normal functions, should also perform
Aallocation
Breallocation
Clinking
Dloading
View Answer

Categories