Cochin University Previous Papers BE CS 4th Semester Principles of Programming Languages May 2006

Cochin University Previous Papers BE CS 4th Semester

Principles of Programming Languages May 2006

 

1. (a) Discuss the formal methods of describing syntax of programming languages. Give suitable examples.

(b) Explain different methods for describing semantics.

OR

II.  (a) Explain the following:

(i)  Attribute grammar

(ii) Denotational semantics.

(b) Explain syntax chart with example.

 

III. (a) Describe briefly on sequence control between statements.

(b) Differentiate between function overloading and operator overloading.

OR

IV. (a) Discuss various methods of passing parameters to procedures.

(b) Discuss the data types and variables used in various programming languages.

 

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

(b) Explain the design and implementation issues of exception handling.

OR

VI. (a) Explain how concurrency is achieved is ADA.

(b) Explain the following with example:

(i) Runtime polymorphism

(ii) Inheritance

 

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

(b) Explain the applications of functional programming languages.

OR

VIII. (a) Write a program in LISP to find the factorial of a number.

(b) Explain the different data types in LISP.

(c) Explain the following :

(i) cadr

(ii) append

(ii) cons

 

IX. (a) Briefly explain the applications of logic programming.

(b) Explain the following :

(i) Horn clauses (ii) Term rewriting.

OR

X. (a) Explain predicate calculus with suitable example.

(b) What features of PROLOG classify it as a logic programming language ?

Leave a Comment