Cochin University Previous Papers BE CS 4th Semester Principles of Programming Languages July 2001

Cochin University Previous Papers BE CS 4th Semester

Principles of Programming Languages July 2001

 

MODULE – I

I. (a) What are the main reasons for studying the concepts of Programming Language?

(b) Explain the features of object oriented languages.

OR

II. (a) Define attribute grammar. Explain it with suitable example.

(b) Choose two high level programming languages and contrast their definitions of the array data type.

MODULE – II

III. (a) Explain the following:

(i)  Pointers

(ii) Dangling reference

(iii) Unreachable code

(b) Compare and contrast arrays with pointers.

OR

IV. (a) Explain the design issues for arrays and records,

(b) What do you mean by access modifiers? Explain with examples. 

MODULE – III

V. (a) Explain the following terms with respect to programming languages:

(i)Encapsulation           (ii) Inheritance

(iii)Polymorphism        (iv) Data Hiding

(b) Is inheritance possible without encapsulation? Justify your answer.

OR

VI. (a) Explain the need of exception handling. How is it implemented in C++?

(b) What do you mean by overloading? Explain with examples. 

MODULE – IV

VII. (a) Explain the suitability of the C++ as a language for system programming.

(b) Explain the primitive data types and library functions used in LISP.

OR

VIII. (a) Compare and contrast the features of FORTRAN and PASCAL.

(b) Explain the LISP functions EVAL and APPLY with examples.

 

MODULE – V

IX. (a) Explain the concept of predicate calculus with examples.

Explain the concept of Context Free Grammars for Programming Languages.

OR

X. short notes on the following:

(i)  Unconditional jump

(ii) Infinite loop

(iii) Recursion

(iv) Illegal operation.

 

Leave a Comment