Académique Documents
Professionnel Documents
Culture Documents
4. Difficulty of using pointer and reference variables correctly, the cost of references to the
variables, and the complexity of the required storage management implementation is
disadvantage of:
a. Stack dynamic variables
b. Explicit heap dynamic variables
c. Impilicit heap dynamic variables
d. Static variables
5. Run time overhead of maintaining all the dynamic attributes is the disadvantage of:
a. Stack dynamic variables
b. Explicit heap dynamic variables
c. Impilicit heap dynamic variables
d. Static variables
11. Type conversions are either narrowing or widening. Which one is widening type conversion…
a. double to float c. int to float
b. int to char d. float to int
12. Show the order of evaluation of the following expression by parenthesizing all sub expression a *
b–1+c
a. ((a * b) – 1 ) + c c. a * (b – (1 + c))
b. a * ((b – 1) + c) d. (a * (b – 1)) + c
14. The body of a loop is always executed at least once in the case of
a. Counter controlled loop
b. Pretest logically controlled llop
c. Posttest logically controlled loop
d. All loop cases
15. Programming language designs are also influenced by the trend in software development
methodologies. The latest methodology is known as
a. Structured programming
b. Procedure oriented programming
c. Data oriented programming
d. Object oriented programming
II. Essay (70%)
1. (10%) To evaluate features and capabilities of various progrraming langauges, we need a set of
evaluation criteria. Describe those criteria.
3. (15%) Bindings can be viewed as association between attributes and variable. Explain different
kinds of such bindings with examples.
4. (15%) A local variable can be a static variable or a stack dynamic variable. Explain the
advantanges and disadvantages of static and dynamic variables.
5. (15%) Describe different types of selection statements and iterative statements, and give
examples.