0% found this document useful (0 votes)
37 views2 pages

PPL 1

This document is an exam paper for the Principles of Programming Languages course. It contains two parts - Part A with short answer questions worth 25 marks total, and Part B with longer answer questions worth 50 marks total. Part A covers topics like syntax vs semantics, derivation trees, variable attributes, coroutines, variable scope/lifetime, message passing, and data types in Python. Part B questions ask about operational vs denotational semantics, operator associativity, programming language implementation methods, subtypes vs derived types, array initialization, function design issues, dynamic binding advantages/disadvantages, subprogram overloading, exception handling in Ada, Prolog terms/goals, semaphores, C# threads, LISP pri

Uploaded by

sai charan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
37 views2 pages

PPL 1

This document is an exam paper for the Principles of Programming Languages course. It contains two parts - Part A with short answer questions worth 25 marks total, and Part B with longer answer questions worth 50 marks total. Part A covers topics like syntax vs semantics, derivation trees, variable attributes, coroutines, variable scope/lifetime, message passing, and data types in Python. Part B questions ask about operational vs denotational semantics, operator associativity, programming language implementation methods, subtypes vs derived types, array initialization, function design issues, dynamic binding advantages/disadvantages, subprogram overloading, exception handling in Ada, Prolog terms/goals, semaphores, C# threads, LISP pri

Uploaded by

sai charan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Code No: 115AN

R13
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
B. Tech III Year I Semester Examinations, November - 2015
PRINCIPLES OF PROGRAMMING LANGUAGES
(Computer Science and Engineering)
Time: 3 hours Max. Marks: 75

Note: This question paper contains two parts A and B.


Part A is compulsory which carries 25 marks. Answer all questions in Part A. Part B
consists of 5 Units. Answer any one full question from each unit. Each question carries
10 marks and may have a, b, c as sub questions.

PART - A (25 Marks)

1.a) Define syntax and semantics. [2]


b) Define derivation and a parse tree. [3]
c) What is the problem with case sensitive names? [2]
d) What is a variable? What are the attributes of a variable? [3]
e) What is a Co-routine? Explain. [2]
f) Explain the scope and life time of a variable. [3]
g) What is message passing? Explain. [2]
h) What advantages do monitors have over semaphores? [3]
i) What are the data types supported in Python? [2]
j) Differentiate between procedural and data abstraction. [3]

PART - B (50 Marks)

2.a) In what fundamental way do operational semantics and denotational semantics differ?
b) Explain with an example how operator associativity can be incorporated in grammars.
[5+5]
OR
3.a) What are the three general methods of implementing a programming language?
b) The levels of acceptance of any language depend on the language description.
Comment on this. [5+5]

4.a) Explain the differences between subtypes and derived types.


b) What are the design issues for character string types? Discuss. [5+5]
OR
5.a) Describe the process of Array initialization.
b) Explain the problems associated with Unconditional Branching. [5+5]

6.a) Explain the design issues that are involved in functions.


b) What are the advantages and disadvantages of dynamic type binding? [5+5]
OR
7.a) Explain how subprogram names are passed as parameters. Illustrate with examples.
b) Explain how subprogram is overloaded? Give examples. [5+5]

8.a) Explain in brief about Exception handling in Ada.


b) Discuss Terms and Goal statements in Prolog. [5+5]
www.ManaResults.co.in
OR
9.a) What is a semaphore? What are the operations on semaphores?
b) Write short notes on C# threads. [5+5]
10.a) Explain the Basic primitives of LISP. Give suitable examples.
b) Discuss the applications of functional languages. [5+5]
OR
11.a) Explain the differences between Imperative and functional languages.
b) Write a detail note on functions in ML. [5+5]

---ooOoo---

www.ManaResults.co.in

You might also like