

MCQOPTIONS
Saved Bookmarks
This section includes 8 Mcqs, each offering curated multiple-choice questions to sharpen your Compilers knowledge and support exam preparation. Choose a topic below to get started.
1. |
A shift reduce parser carries out the actions specified within braces immediately after reducing with the corresponding rule of grammar S -> xxW ( PRINT 1 ) S -> y { print 2 } S -> Sz { print 3 ) What is the translation of xxxxyzz using the syntax directed translation scheme described by the above rules? |
A. | 23131 |
B. | 11233 |
C. | 11231 |
D. | 33211 |
Answer» B. 11233 | |
2. |
Resolution of externally defined symbols is performed by ___________ |
A. | Linker |
B. | Loader |
C. | Compiler |
D. | Interpreter |
Answer» B. Loader | |
3. |
A system program that combines separately compiled modules of a program into a form suitable for execution is? |
A. | Assembler |
B. | Linking Loader |
C. | Cross Compiler |
D. | None of the mentioned |
Answer» C. Cross Compiler | |
4. |
The computer language generally translated to pseudocode is ___________ |
A. | Assembly |
B. | Machine |
C. | Pascal |
D. | FORTRAN |
Answer» B. Machine | |
5. |
A programmer by mistake writes multiplication instead of division, such error can be detected by? |
A. | Compiler |
B. | Interpreter |
C. | Compiler or interpreter test |
D. | None of the mentioned |
Answer» E. | |
6. |
A compiler is a program that ___________ |
A. | Program is put into memory and executes it |
B. | Translation of assembly language into machine language |
C. | Acceptance of a program written in a high level language and produces an object program |
D. | None of the mentioned |
Answer» D. None of the mentioned | |
7. |
A system program that set-up an executable program in the main memory ready for execution is? |
A. | Assembler |
B. | Linker |
C. | Loader |
D. | Text editor |
Answer» D. Text editor | |
8. |
Compiler can diagnose __________ |
A. | Grammatical errors only |
B. | Logical errors only |
C. | Grammatical and logical errors |
D. | None of the mentioned |
Answer» B. Logical errors only | |