Professional Documents
Culture Documents
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 readability? [4+6+6]
?????
Code No: R5310506 2
III B.Tech I Semester(R05) Supplementary Examinations, May 2009
PRINCIPLES OF PROGRAMMING LANGUAGES
(Computer Science & Engineering)
Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
?????
1. (a) What are the factors that influence programming language design?
(b) Explain in detail various phases in the process of compilation. [8+8]
2. (a) Distinguish between language recognizers and language generators.
(b) Give BNF and EBNF versions of grammar for expressions in ‘C’ language
[6+10]
3. (a) What is the problem with case sensitive names?
(b) Write short notes on floating-point data type. What do you mean by precision and range?
Also give IEEE Floating-Point Standard 754 format for single-and-double-precision rep-
resentation.
(c) What is a variable? What are the attributes of a variable? Elaborate on each of them.
[4+6+6]
4. (a) Explain with an example the Ada f or statement.
(b) Is switch or case construct adequate for multiple selections? How nested two-way selectors
can can be used to simulate a multiple selector.
(c) Write notes on unconditional branching and the problems associated with it.
[5+5+6]
5. Discuss the following and compare the merits and demerits of each.
(a) Call- by- value
(b) Call by- reference
(c) Call by- Name
(d) Call by- value results [4+4+4+4]
6. (a) Briefly Explain about different types of encapsulation constructs.
(b) How is Struct objects in C# created? Explain with examples. [8+8]
7. Write the following statements in prolog:
(a) If Fido is yellow lab, then Fido is a dog
(b) If it is Tuesday and it is February, then there is school
(c) If Fred is a male and Fred is your parent, then Fred is your father
(d) If x is your parent, then x is your father or x is your mother [4+4+4+4]
8. (a) Give brief descriptions about functions in Haskell.
(b) Explain functions with examples in ML. [8+8]
?????
Code No: R5310506 3
III B.Tech I Semester(R05) Supplementary Examinations, May 2009
PRINCIPLES OF PROGRAMMING LANGUAGES
(Computer Science & Engineering)
Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
?????
?????
Code No: R5310506 4
III B.Tech I Semester(R05) Supplementary Examinations, May 2009
PRINCIPLES OF PROGRAMMING LANGUAGES
(Computer Science & Engineering)
Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
?????
1. (a) What are the factors that influence programming language design?
(b) Explain in detail various phases in the process of compilation. [8+8]
5. (a) Explain with examples pass- by- value and pass- by- reference parameter passing tech-
niques.
(b) Explain type checking technique in parameter passing. [8+8]
8. (a) Explain any 4 features of HASKELL which make it suitable as a functional programming
language.
(b) What are the major advantages and limitations of functional programming languages.
[8+8]
?????