

MCQOPTIONS
Saved Bookmarks
This section includes 5 Mcqs, each offering curated multiple-choice questions to sharpen your Compilers knowledge and support exam preparation. Choose a topic below to get started.
1. |
Consider the grammar rule. E -> E1 E2 for arithmetic expressions. If E1 and E2 do not have any common sub expression, in order to get the shortest possible code. |
A. | E1 should be evaluated first |
B. | E2 should be evaluated first |
C. | Evaluation of E1 and E2 should necessarily be interleaved |
D. | Order of evaluation of E1 and E2 is of no consequence |
Answer» C. Evaluation of E1 and E2 should necessarily be interleaved | |
2. |
Which of the following is NOT an advantage of using shared, dynamically linked libraries as compared to statically linked libraries? |
A. | Smaller sizes of executable |
B. | Lesser overall page fault rate in the system |
C. | Faster program start-up |
D. | Existing programs need not be re-linked to take advantage of newer versions of libraries |
Answer» D. Existing programs need not be re-linked to take advantage of newer versions of libraries | |
3. |
If dynamic scoping is used and call by name mechanism is used, the values printed will be? |
A. | 115, 220 |
B. | 25, 220 |
C. | 25, 15 |
D. | 115, 105 |
Answer» C. 25, 15 | |
4. |
If the programming language uses static scoping and call by need parameter passing mechanism, the values printed will be? |
A. | 115, 220 |
B. | 25, 220 |
C. | 25, 15 |
D. | 115, 105 |
Answer» E. | |
5. |
Dynamic linking can cause security concerns because ______________ |
A. | Security is dynamic |
B. | None of the mentioned |
C. | Security is dynamic & Cryptographic procedures are not available for dynamic linking |
D. | Cryptographic procedures are not available for dynamic linking |
Answer» E. | |