Cochin University Exam Paper Principles of Programming Languages Nov08

Cochin University Exam Paper Principles of Programming Languages Nov08

 

PART-A

1. (Answer ALL Questions)

(All questions carry FIVE Marks)

(a) Write a note on ambiguous grammar?

(b) Describe the concept of denotation Semantics?

(c) Write a note on Named Constants?

(d) What is meant by Referencing environment?

(e) Write general characteristics of small talk?

(f) Write the use of ‘Finally’ clause in Java exception handling Draw the internal representation of a LISP LIST

(g)Write a note on clausal form?

PART-B

2. Write short note on

(i)  Object oriented program

(i)  Logical program

(ii) Functional program

OR

3. Write short note on

(i)   Attribute grammar

(ii) Context Free grammar

(ii) Operational Semantics

Categorise and explain the storage bindings’of variables according to their Lifetime?

OR

4. (a)Explain different parameter passing mechanisms with examples?

(b) Explain various design issues for object Oriented Languages?

OR

5. Write a note on following terms

(i)  Inheritance

(ii) Dynamic binding

(iii) Encapsulation

 

6. a) Describe the features of Logic programming?

b) Write a note on Resolution principle?

OR

7. a) Desciibe the inferencing process of prolog?

b) Describe the applications of Logic programming?

Leave a Comment