

MCQOPTIONS
Saved Bookmarks
This section includes 3 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. |
The computer language generally translated to pseudo-code is |
A. | Assembly |
B. | Machine |
C. | Pascal |
D. | FORTRAN |
Answer» B. Machine | |
3. |
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. | |