JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD

JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD B.Tech II PRINCIPLES OF PROGRAMMING LANGUAGES Previous Question Paper (December - 2017 - R15)

B.Tech | II | II | R15 | December - 2017

Answer PaperPaper Code: 124DJMaximum Marks: 75Time: 3 Hours

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

125 marks
a

Define Syntax.

2 marks

Answer

Syntax refers to the set of rules that define the structure and form of statements, expressions, and programs in a programming language. It specifies how symbols and tokens must be arranged to form valid constructs, independent of their meaning.

b

What is aliasing?

3 marks

Answer

Aliasing occurs when two or more distinct names or variables in a program refer to the same memory location. This can happen through the use of pointers, reference variables, or shared global variables, and it can make program analysis and debugging difficult because changing the value through one name affects the other.

c

What is an access function for an array?

2 marks

Answer

Sign in to view the complete answer paper.

d

What are the two common problems with pointers?

3 marks

Answer

Sign in to view the complete answer paper.

e

What is parameter profile?

2 marks

Answer

Sign in to view the complete answer paper.

f

What are actual parameters?

3 marks

Answer

Sign in to view the complete answer paper.

g

What do you mean by friend function?

2 marks

Answer

Sign in to view the complete answer paper.

h

Why does Java not have destructors?

3 marks

Answer

Sign in to view the complete answer paper.

i

Define referential transparency.

2 marks

Answer

Sign in to view the complete answer paper.

j

What data types were parts of the original LISP?

3 marks

Answer

Sign in to view the complete answer paper.

Part B

210 marks
a

What are the three general methods of implementing a programming Language?

5 marks

Answer

Sign in to view the complete answer paper.

b

In What fundamental way do operational semantics and denotational semantics differ? Discuss briefly.

5 marks

Answer

Sign in to view the complete answer paper.

OR
310 marks
a

Write EBNF descriptions for a Java Class definition header statement.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write EBNF descriptions for a C switch statement.

5 marks

Answer

Sign in to view the complete answer paper.

410 marks
a

Give an overview of subscript bindings and array categories.

5 marks

Answer

Sign in to view the complete answer paper.

b

Why reference variables in C++ better than pointers for formal parameters? Explain with an example.

5 marks

Answer

Sign in to view the complete answer paper.

OR
510 marks
a

Discuss about various attributes of a variable.

5 marks

Answer

Sign in to view the complete answer paper.

b

Give an illustration of ‘assignment as an expression’ and the disadvantages of the same.

5 marks

Answer

Sign in to view the complete answer paper.

610 marks
a

Distinguish between co routines and subprograms.

5 marks

Answer

Sign in to view the complete answer paper.

b

Illustrate with examples static and stack-dynamic local variables.

5 marks

Answer

Sign in to view the complete answer paper.

OR
710 marks
a

Consider the following program written in C syntax:
void fun (int first, int second) { first += first; second += second; }
void main() { int list[2] = {1, 4}; fun(list[0], list[1]); }
For each of the following parameter-passing methods, what are the values of the list array after execution?
i) Passed by reference
ii) Passed by value-result.

5 marks

Answer

Sign in to view the complete answer paper.

b

What are the design issues for functions? Discuss briefly.

5 marks

Answer

Sign in to view the complete answer paper.

8

What are the problems with semaphores for providing competition synchronization? Explain how monitors provide competition synchronization without these problems.

10 marks

Answer

Sign in to view the complete answer paper.

OR
9

What is the difference between checked and unchecked exceptions in Java? Illustrate with an example.

10 marks

Answer

Sign in to view the complete answer paper.

10

Write about the following Functional Languages:

10 marks
a

HASKELL

5 marks

Answer

Sign in to view the complete answer paper.

b

ML

5 marks

Answer

Sign in to view the complete answer paper.

OR
11

Explain the following with respect to Python:

10 marks
a

Data types

3 marks

Answer

Sign in to view the complete answer paper.

b

Iterative commands

3 marks

Answer

Sign in to view the complete answer paper.

c

Class

4 marks

Answer

Sign in to view the complete answer paper.

About this paper

This page contains the question paper of PRINCIPLES OF PROGRAMMING LANGUAGES from JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD for B.Tech IT II II, December - 2017, R15.

For the solved question paper with answers, switch to the Answer Paper tab.

Other papers in PRINCIPLES OF PROGRAMMING LANGUAGES

Loading Question Papers

Fetching data from database...