

MCQOPTIONS
Saved Bookmarks
This section includes 9 Mcqs, each offering curated multiple-choice questions to sharpen your Compilers knowledge and support exam preparation. Choose a topic below to get started.
1. |
Running time of a program depends on __________ |
A. | Addressing mode |
B. | Order of computations |
C. | The usage of machine idioms |
D. | All of the mentioned |
Answer» E. | |
2. |
A top down parser generates __________ |
A. | Rightmost Derivation |
B. | Right most derivation in reverse |
C. | Left most derivation |
D. | Left most derivation in reverse |
Answer» D. Left most derivation in reverse | |
3. |
AB+(A+B) is equivalent to __________ |
A. | A?B |
B. | A+B |
C. | (A+B)A |
D. | (A+B)B |
Answer» B. A+B | |
4. |
What is the binary equivalent of the decimal number 368? |
A. | 10111000 |
B. | 110110000 |
C. | 111010000 |
D. | 111100000 |
Answer» C. 111010000 | |
5. |
Relocating bits used by relocating loader are specified by __________ |
A. | Relocating loader itself |
B. | Linker |
C. | Assembler |
D. | Macro Processor |
Answer» C. Assembler | |
6. |
The action of parsing the source program into proper syntactic classes is called __________ |
A. | Syntax Analysis |
B. | Lexical Analysis |
C. | Interpretation analysis |
D. | General Syntax Analysis |
Answer» C. Interpretation analysis | |
7. |
A parser with the valid prefix property is advantageous because it __________ |
A. | Detects errors |
B. | None of the mentioned |
C. | Errors are passed to the text phase |
D. | All of the mentioned |
Answer» D. All of the mentioned | |
8. |
YACC builds up __________ |
A. | SLR parsing table |
B. | Canonical LR parsing table |
C. | LALR parsing table |
D. | None of the mentioned |
Answer» D. None of the mentioned | |
9. |
Inherited attribute is a natural choice in ___________ |
A. | Variable declarations record is maintained |
B. | L values and R values |
C. | All of the mentioned |
D. | None of the mentioned |
Answer» B. L values and R values | |