MCQOPTIONS
Saved Bookmarks
This section includes 2 Mcqs, each offering curated multiple-choice questions to sharpen your Compilers knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
VALUE_REPRESENTS_THE_CORRESPONDING_INTEGER_VALUE._FOR_AN_INPUT_‚ÄÖ√Ñ√∂‚ÀÖ√Ë‚Àւ§2_*_3_+_4‚ÄÖ√Ñ√∂‚ÀÖ√Ë‚ÀÖ¬•,_THIS_TRANSLATION_SCHEME_PRINTS?$# |
| A. | 2 * 3 + 4 |
| B. | 2 * + 3 4 |
| C. | 2 3 * 4 + |
| D. | 2 3 4 + * |
| Answer» B. 2 * + 3 4 | |
| 2. |
Which one of the following is true about the action of yacc for the given grammar? |
| A. | It detects recursion and eliminates recursion |
| B. | It detects reduce-reduce conflict, and resolves |
| C. | It detects shift-reduce conflict, and resolves the conflict in favor of a shift over a reduce action |
| D. | It detects shift-reduce conflict, and resolves the conflict in favor of a reduce over a shift action |
| Answer» C. It detects shift-reduce conflict, and resolves the conflict in favor of a shift over a reduce action | |