Cochin University Paper Principles of Programming Languages Mar 07

 Cochin University Paper Principles of Programming Languages Mar 07


I. (a) Define syntax and semantics, with examples.

(b) Write notes on :

(i) Programming domains

(ii) Attribute grammars


II. (a) Explain the formal methods of describing syntax and semantics of languages.

(b) Explain:

(i) Language evaluation

(ii) Backus Naur Form


III. (a) Explain scope and lifetime of variables, with the help of examples.

(b) Explain overloading of functions with examples.

(c) Write a note on control structures.


IV. (a) Explain different parameter passing mechanisms, with the help of examples.

(b) Explain:

(i) Generic subprograms

(ii) Datatypes and variables


V. (a) Explain the features of object oriented languages.

(b) Explain exception handling mechanisms in Java.


VI. (a) Compare C++ and Java.

(b) Explain the features of Small talk.

(c) Explain data abstraction, polymorphism and inheritance.


VII. (a) Explain the features of functional programming languages.

(b) Explain how list data structure is defined and manipulated in LISP.


VIII.(a) Write a note on Lambda calculus.

(b)Explain the datatypes used in LISP.

(c) Explain the application of functional programming languages.


IX. (a) Explain the use of predicate calculus in logic programming languages.

(b) Give a brief introduction to Prolog and its features.


X.  (a) Write a note on horn clauses.

(b) Explain the applications of logic programming languages.

Leave a Comment