JNTU

JNTU B.Tech II PRINCIPLES OF PROGRAMMING LANGUAGES Previous Question Paper (May - 2019 - R13)

B.Tech | II | II-II | R13 | May - 2019

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

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.

PART A

125 marks
a

What is a nonprocedural language?

2 marks

Answer

A nonprocedural language is a declarative programming language where the programmer specifies what the program should accomplish rather than how to achieve it through explicit step-by-step instructions. Examples include SQL and Prolog.

b

Define CFG.

3 marks

Answer

A Context-Free Grammar (CFG) is a formal grammar used to define the syntax of a programming language. It is defined by a 4-tuple (V, Σ, R, S), where V is a set of non-terminals, Σ is a set of terminals, R is a set of production rules, and S is the start symbol.

c

What is a heterogeneous array?

2 marks

Answer

Sign in to view the complete answer paper.

d

What is binding?

3 marks

Answer

Sign in to view the complete answer paper.

e

What is subprogram Protocol?

2 marks

Answer

Sign in to view the complete answer paper.

f

What are formal 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

What is the purpose of C++ constructor?

3 marks

Answer

Sign in to view the complete answer paper.

i

What are the applications of functional programming languages?

2 marks

Answer

Sign in to view the complete answer paper.

j

What does procedural abstraction mean?

3 marks

Answer

Sign in to view the complete answer paper.

PART B

210 marks
a

What are the advantages in implementing a language with a pure interpreter? Discuss briefly.

5 marks

Answer

Sign in to view the complete answer paper.

b

What is the meaning of the preconditions and post conditions of given statement in axiomatic semantics? Explain.

5 marks

Answer

Sign in to view the complete answer paper.

OR
310 marks
a

Write EBNF description for a Java method call statement.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write EBNF description for a C union definition.

5 marks

Answer

Sign in to view the complete answer paper.

410 marks
a

Give an overview of iteration statements.

5 marks

Answer

Sign in to view the complete answer paper.

b

Illustrate with examples what bindings take place at compile time, load time, link time and run time.

5 marks

Answer

Sign in to view the complete answer paper.

OR
510 marks
a

Explain about the problems associated with pointers.

5 marks

Answer

Sign in to view the complete answer paper.

b

What are the advantages of user-defined enumeration types? Discuss briefly.

5 marks

Answer

Sign in to view the complete answer paper.

610 marks
a

Explain about the choices for referencing environment of parameters that are subprograms.

5 marks

Answer

Sign in to view the complete answer paper.

b

Consider the following program written in C syntax... For each of the following parameter passing-methods, what are all of the values of the variables value and list after each of the three calls to swap?

5 marks

Answer

Sign in to view the complete answer paper.

OR
710 marks
a

What are the advantages and disadvantages of dynamic local variables? Discuss briefly.

5 marks

Answer

Sign in to view the complete answer paper.

b

Illustrate co routines with examples.

5 marks

Answer

Sign in to view the complete answer paper.

8

How can an exception handler be written in Java so that it handles any exception? Illustrate with an example.

10 marks

Answer

Sign in to view the complete answer paper.

OR
910 marks
a

Define Abstract Data type? What are the advantages of the two parts of the definition of abstract data type?

5 marks

Answer

Sign in to view the complete answer paper.

b

How is the type system of Java different from that of C++? Illustrate with an example.

5 marks

Answer

Sign in to view the complete answer paper.

10

Explain the following with respect to LISP: data types, structures and LISP interpreter.

10 marks

Answer

Sign in to view the complete answer paper.

OR
1110 marks
a

Explain procedural abstraction with respect to Python.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain data abstraction with respect to Python.

5 marks

Answer

Sign in to view the complete answer paper.

About this paper

This page contains the solved question paper with answers of PRINCIPLES OF PROGRAMMING LANGUAGES from JNTU for B.Tech IT II II-II, May - 2019, R13.

For the question paper without answers, switch to the Question Paper tab.

Other papers in PRINCIPLES OF PROGRAMMING LANGUAGES

Loading Question Papers

Fetching data from database...