Beruflich Dokumente
Kultur Dokumente
1
III B.Tech I Semester Supplimentary Examinations, February 2008
PRINCIPLES OF PROGRAMMING LANGUAGES
( Common to Computer Science & Engineering and Computer Science &
Systems Engineering)
Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
⋆⋆⋆⋆⋆
1. What is the significance of abstraction. What are the two different categories of
abstractions that a programming language can support. Explain with examples
from different languages. [16]
2. What do you mean by program verification. Explain the steps involved in program
verification. [16]
3. Write short notes on coercion, type error, type checking and strong typing. [16]
6. (a) Define abstract types. What are the language design requirements for a lan-
guage that supports abstract data types? [8]
(b) What are the differences between private and limited private types in Ada?
[8]
⋆⋆⋆⋆⋆
1 of 1
Code No: RR310505 Set No. 2
III B.Tech I Semester Supplimentary Examinations, February 2008
PRINCIPLES OF PROGRAMMING LANGUAGES
( Common to Computer Science & Engineering and Computer Science &
Systems Engineering)
Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
⋆⋆⋆⋆⋆
2. Give BNF notation for if loop, case statement, does-while statement in C. give the
corresponding syntax graph. [16]
4. (a) What are the design issues for pointer types. [6]
(b) What are the two common problems with pointers. [6]
(c) Why are pointers of most languages restricted to pointing at a single type
object. [4]
8. (a) Explain the differences between functional and imperative languages. [8]
(b) Explain how Meta Language differs from Haskell. [8]
⋆⋆⋆⋆⋆
1 of 1
Code No: RR310505 Set No. 3
III B.Tech I Semester Supplimentary Examinations, February 2008
PRINCIPLES OF PROGRAMMING LANGUAGES
( Common to Computer Science & Engineering and Computer Science &
Systems Engineering)
Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
⋆⋆⋆⋆⋆
3. (a) What is strongly typed language. Give examples of strongly typed languages.
[6]
(b) What are the advantages and disadvantages of strongly typed languages. [10]
5. (a) What are the advantages and disadvantages of dynamic local variables? [8]
(b) What are the design issues for subprograms? [8]
6. (a) What are the three levels of concurrency in programs? Explain. [8]
(b) What is a semaphore? What are the operations that can be performed on
semaphores? Explain. [8]
⋆⋆⋆⋆⋆
1 of 1
Code No: RR310505 Set No. 4
III B.Tech I Semester Supplimentary Examinations, February 2008
PRINCIPLES OF PROGRAMMING LANGUAGES
( Common to Computer Science & Engineering and Computer Science &
Systems Engineering)
Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
⋆⋆⋆⋆⋆
2. Give BNF notation for identifier, for loop, while loop in C. Give the corresponding
syntax graph. [16]
3. A variable is more than a name given to a memory location. What are the attributes
of a variable. Explain in detail. [16]
8. (a) Define Cambridge polish and lambda notation. Explain with examples. [8]
(b) What is S-Expression and how is evaluated. Give an example. [8]
⋆⋆⋆⋆⋆
1 of 1