 
			 
			MCQOPTIONS
 Saved Bookmarks
				This section includes 10 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. | In which way a macro processor for assembly language can be implemented? | 
| A. | Independent two-pass processor | 
| B. | Independent one-pass processor | 
| C. | Processor put into pass 1 of a standard two pass assembler | 
| D. | All of the mentioned | 
| Answer» E. | |
| 4. | 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 | |
| 5. | The computer language generally translated to pseudocode is ___________ | 
| A. | Assembly | 
| B. | Machine | 
| C. | Pascal | 
| D. | FORTRAN | 
| Answer» B. Machine | |
| 6. | 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. | |
| 7. | 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 | |
| 8. | 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 | |
| 9. | A simple two-pass assembler does which of the following in the first pass? | 
| A. | It allocates space for the literals | 
| B. | Calculates total length of the program | 
| C. | Symbol table is built for the symbols and their value | 
| D. | All of the mentioned | 
| Answer» E. | |
| 10. | 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 | |