Rajiv Gandhi Proudyogiki Vishwavidyalaya 2011-6th Sem B.E Computer Science and Engineering .(ester) - exam paper
B.E.(sixth semester) EXAMINATION,June.2011
PRINCIPLES OF PROGRAMMING LANGUAGES
UNIT-1
Note : Attempt any five questions. All questions carry equal marks.
1.(a) Explain object oriented programming and logic programming with examples.MARK:[10]
(b) Explain the steps of compilation in PPL. MARK : [10]
2.(a) Explain the difference between in type coherence and type equivalence. MARK:[10]
(b) What do you mean by Aliasing and Overloadind ?MARK:[10]
3.(a) Consider the example program,discuss the call by reference and call by value:
Swap (a[i],a[j])
What happens if i=j ?
Swap (int x,int y)
{
x=x+y;
y=x-y;
x=x-y;
} MARK:[10]
(b) Explain design issues of subprogram and parameter passing methods. MARK:[10]
4.(a) Explain the phases of grammar. MARK:[10]
(b) Why pointer is necessary in any programming languagues ? MARK:[10]
5.(a) What is the scope of a loop parameter in Ada ? Compare it with static and dynamic scope. MARK:[10]
(b) Which language treat all parameter having the same priority in what order the operations performed ? MARK:[10]
6.(a) Disscuss the effect of the global variable on the writability and readability of large program. MARK:[10]
(b) What do you mean by co-routines ? Explain.MARK:[10]
7.(a) Explain the procedure of encapsulation and message passing in programming language. MARK:[10]
(b) What the working procedure of exception handling C++.MARK:[10]
8. Write short notes on any four of the following : MARK:[20]
(a) Functional programming languages
(b) Java threads
(c) Fundamentals of subprograms
(d) Parse tree
(e) Error handling
Earning: Approval pending. |