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

Cochin University Previous Papers BE CS 4th Semester

Principles of Programming Languages June 2001

 

I.   (a) Explain the terms: syntax, semantics, attribute grammars with suitable examples.

(b) Discuss the four basic computational model that describe the programming languages exist today.

OR

II. (a) What is a BNF grammar? Explain its use with an example. ,

(b) Explain the importance of variable declaration in programming languages.

 

III. (a) What are pointers? How they are defined and used? Give solutions to dangling pointers.

(b) What is meant by product and sum of domains?

OR

IV. (a) Explain major program and data elements requiring storage during program execution.

(b) Discuss the different storage management techniques and their use in language implementations.

 

V. (a) Write note on binding and binding times.

(b) Explain various binding times for the statement x: + 10.

OR

VI. (a) Explain various sequence control mechanisms in Pascal with examples.

(b) What are the design issues in subprogram implementation?  (10)

 

VII. Write notes on parameter passing mechanism in Pascal with examples.

OR

VIII. (a) What is recursion?

(b) Explain Static scope and dynamic scope with example.

(c) Explain global and local variables.

 

IX. Write notes on Concurrent process, Semaphore, mutual exclusion.

OR

X. Explain the need of data types and type checking taking Pascal as representative language.

Leave a Comment