r05310505 Principles of Programming Langauges
r05310505 Principles of Programming Langauges
1
III B.Tech I Semester Supplimentary Examinations, February 2008
PRINCIPLES OF PROGRAMMING LANGAUGES
(Computer Science & Engineering)
Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
⋆⋆⋆⋆⋆
1. (a) Explain about von Neumann computer architecture and the programming
language paradigm dictated by the architecture.
(b) Briefly discuss the list of criteria for language evaluation. [8+8]
3. (a) How can enumeration types be implemented in languages that do not have
enumeration types and what are the problems associated with such imple-
mentations?
(b) What are the advantages and disadvantages of static variables?
(c) Explain pointers in C and C++ . [4+6+6]
⋆⋆⋆⋆⋆
1 of 1
Code No: R05310505 Set No. 2
III B.Tech I Semester Supplimentary Examinations, February 2008
PRINCIPLES OF PROGRAMMING LANGAUGES
(Computer Science & Engineering)
Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
⋆⋆⋆⋆⋆
1. Explain language evaluation criteria and the characteristics that affect them. [16]
⋆⋆⋆⋆⋆
1 of 1
Code No: R05310505 Set No. 3
III B.Tech I Semester Supplimentary Examinations, February 2008
PRINCIPLES OF PROGRAMMING LANGAUGES
(Computer Science & Engineering)
Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
⋆⋆⋆⋆⋆
1. (a) How readability and writability contradict with each other? Explain with an
example.
(b) Give advantages and disadvantages of pure compilation and pure interpreta-
tion.
(c) What are the factors influencing the writability of a language? [4+6+6]
2. (a) What do you mean by static semantics? Give examples of static semantic
rules that are difficult and impossible to describe with BNF.
(b) A concise and understandable description of a programming language is es-
sential to the language’s success. Comment on this.
(c) Define axiomatic semantics. Comment on its applicability. [5+5+6]
3. (a) Explain in detail dynamic type binding.
(b) Explain in detail various design issues of character string types. [8+8]
4. (a) Explain Dijkstra’s selection construction and loop structure.
(b) Explain with examples user-located loop control mechanisms provided by var-
ious languages. [8+8]
5. (a) Explain with examples pass- by- value and pass- by- reference parameter pass-
ing techniques.
(b) Explain type checking technique in parameter passing. [8+8]
6. Explain the following terms :
(a) Message passing
(b) Concurrency in Ada
(c) Monitors [6+5+5]
7. (a) Write a prolog program that returns last element of a given list.
(b) Explain the closed world assumption used by prolog. Why is this a limitation?
[10+6]
8. (a) Explain the structured data types of LISP.
(b) Write a detail note on functions in ML. [8+8]
⋆⋆⋆⋆⋆
1 of 1
Code No: R05310505 Set No. 4
III B.Tech I Semester Supplimentary Examinations, February 2008
PRINCIPLES OF PROGRAMMING LANGAUGES
(Computer Science & Engineering)
Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
⋆⋆⋆⋆⋆
1. (a) Give an example of two language design criteria that are in direct conflict with
each other.
(b) How is a language implementation system interfaced to the processor?
(c) Is goto a good programming language construct. How does it affect readabil-
ity? [4+6+6]
3. (a) What are the advantages and disadvantages of dynamic type binding?
(b) Compare the tomb-stones and locks-and-keys methods of avoiding dangling
pointers, from the points of view of safety and implementation cost.
(c) Define name type compatibility and structure type compatibility. What are
the relative merits of these two? [5+6+6]
7. (a) “All Prolog statements are constructed from Terms”. Justify your answer.
1 of 2
Code No: R05310505 Set No. 4
(b) Explain Fact and Rule Statements in Prolog with suitable examples. [8+8]
⋆⋆⋆⋆⋆
2 of 2