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. |
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. |
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/an |
| 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 main memory ready for execution is |
| A. | Assembler |
| B. | Linker |
| C. | Loader |
| D. | Text editor |
| Answer» D. Text editor | |
| 8. |
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. | |
| 9. |
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 | |