Sie sind auf Seite 1von 2

UNIT-II QUESTION BANK

PROF.VAISHALI S.SALUNKHE
G.H.R.I.E.T., WAGHOLI
8 MARK QUESTIONS
1. Define macro & explain macro expansion with suitable example of nested macro.
2. Which are the advanced macro facilities for alteration of flow of control during
expansion? What is AG and A!"?
#. Describe the design of macro processor. $ention its machine independent features.
%. &xplain design of single pass macro processor with facilit' of $A() definition
within $A() definitions and $A() calls within $A()*.
+. What are the databases for two passes of macro processor? &xplain pass,! & pass,!! of
macro processor.
-. &xplain .exical Anal'sis/ *'ntax Anal'sis and *emantic Anal'sis with example
0. Draw a bloc1 diagram of structure of compiler. &xplain its different phases in detail.
2. What is control structure? &xplain compilation of if and while statement.
3. What is (ode ptimi4ation? Discuss various ptimi4ing 5ransformations used b'
compiler with example.
16. .ist down the steps in designing a $acro 7reprocessor.
6 MARK QUESTIONS
11. (ompare between8, (ompiler & !nterpreter.
12. (ompare between 7asses and 7hases of compiler
1#. (ompare between8 $acro & *ubroutine with example
1%. (ompare between 8*'ntax anal'sis and *emantic anal'sis.
4 MARK QUESTIONS
15. What is a general purpose macro processor?
16. What are the advantages of a general purpose macro processor?
17. What are the disadvantages of a general purpose macro processor?
18. What is a pre,7rocessor?
19. Write the machine independent features macro processor.
20. Write about recursive macro expansion.
21. What is conditional macro expansion?
22. *tate how positional parameters and arguments are related in a macro processor?
23. What is meant b' expanding the macro?
24. Give an example for a simple macro,time conditional structure.
25. Give two examples of macro definition.

Das könnte Ihnen auch gefallen