1. | In compiler design ‘reducing the strength’ refers to |
Answer: (b).code optimization using cheaper machine instructions
|
2. | A program P calls two subprograms P1 and P2. P1 can fail 50% times and P2 40% times. Then P can fail |
Answer: (d).70%
|
3. | The process of assigning load addresses to the various parts of the program and adjusting the code and data in the program to reflect the assigned addresses is called __________ |
Answer: (d).Relocation
|
4. | Which of the following derivations does a top-down parser use while parsing an input string ? The input is scanned from left to right |
Answer: (a).Leftmost derivation
|
5. | Which of the following concepts means adding new concepts to a program as it runs? |
Answer: (b).Dynamic loading
|
6. | In a two-pass assembler, symbol table is |
Answer: (c).Not generated at all
|
7. | Match the following: (a) Forward Reference Table (i) Assembler directive (b) Mnemonic Table (ii) Uses array data structure (c) Segment Register Table (iii) Contains machine OP code (d) EQU (iv) Uses linked list data structure code: (a) (b) (c) (d) |
Answer: (d).(iv) (iii) (ii) (i)
|
8. | The translator which performs macro calls expansion is called : |
Answer: (c).Macro pre-processor
|
9. | Which one from the following is false ? |
Answer: (b).A parsing algorithm which performs a left to right scanning and a right most deviation is RL (1)
|
10. | Which phase of compiler generates stream of atoms ? |
Answer: (a).Syntax analysis
|