JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD

JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD B.Tech III PRINCIPLES OF PROGRAMMING LANGUAGES Previous Question Paper (November/December - 2018 - R13)

B.Tech | III | I | R13 | November/December - 2018

Answer PaperPaper Code: 115ANMaximum 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 axiomatic semantics.

2 marks

Answer

Axiomatic semantics is a formal approach to defining the meaning of a programming language based on the logical assertions that can be made about the state of a program before and after the execution of its statements, typically expressed as preconditions and postconditions.

b

Give an attribute grammar for simple assignment statements.

3 marks

Answer

An attribute grammar for a simple assignment statement <var> = <expr> can be defined as follows:

  • <assign> → <var> = <expr>
  • <expr> → <var> + <var>
  • <var> → A | B | C

Attributes: actual_type (synthesized) and expected_type (inherited). The rule for assignment is: <assign>.expected_type <- <var>.actual_type.

c

What do you mean by precision and range?

2 marks

Answer

Sign in to view the complete answer paper.

d

What is aliasing? What are the problems associated with it?

3 marks

Answer

Sign in to view the complete answer paper.

e

Differentiate between actual and formal parameters.

2 marks

Answer

Sign in to view the complete answer paper.

f

What are the three general characteristics of subprograms?

3 marks

Answer

Sign in to view the complete answer paper.

g

Define abstract data type.

2 marks

Answer

Sign in to view the complete answer paper.

h

What is the purpose of a C++ destructor?

3 marks

Answer

Sign in to view the complete answer paper.

i

How Haskell is different from ML?

2 marks

Answer

Sign in to view the complete answer paper.

j

What is procedural abstraction? Give example.

3 marks

Answer

Sign in to view the complete answer paper.

Part B

210 marks
a

Discuss various programming domains and their associated languages.

6 marks

Answer

Sign in to view the complete answer paper.

b

Describe the basic concept of denotational semantics.

4 marks

Answer

Sign in to view the complete answer paper.

OR
310 marks
a

What are the potential benefits of studying programming language concepts?

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain with examples how syntactic design choices affect readability.

5 marks

Answer

Sign in to view the complete answer paper.

410 marks
a

What do you mean by binding? Give examples of some of the bindings and their binding times.

6 marks

Answer

Sign in to view the complete answer paper.

b

Evaluate the two approaches for supporting dynamic allocation and deallocation for dynamic length strings.

4 marks

Answer

Sign in to view the complete answer paper.

OR
510 marks
a

Explain in detail various design issues of character string types.

4 marks

Answer

Sign in to view the complete answer paper.

b

What are dangling pointers and lost heap-dynamic variables? How are they created?

6 marks

Answer

Sign in to view the complete answer paper.

610 marks
a

How co-routines are different from conventional subprograms?

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain type checking technique in parameter passing.

5 marks

Answer

Sign in to view the complete answer paper.

OR
710 marks
a

What is a subprogram? Discuss the design issues of subprograms.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write a detailed note on local referencing environments.

5 marks

Answer

Sign in to view the complete answer paper.

810 marks
a

What are the various methods of exception handling? Discuss.

5 marks

Answer

Sign in to view the complete answer paper.

b

How message passing is implemented in ADA? Give examples.

5 marks

Answer

Sign in to view the complete answer paper.

OR
910 marks
a

Explain how information hiding is provided in an ADA package.

5 marks

Answer

Sign in to view the complete answer paper.

b

Discuss about the basic elements of Prolog with examples.

5 marks

Answer

Sign in to view the complete answer paper.

1010 marks
a

Explain the important functions of LISP.

5 marks

Answer

Sign in to view the complete answer paper.

b

Discuss the key concepts of scripting languages.

5 marks

Answer

Sign in to view the complete answer paper.

OR
1110 marks
a

What are the three features of Haskell that makes very different from schema?

5 marks

Answer

Sign in to view the complete answer paper.

b

What are the data types supported in Python? Discuss.

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 JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD for B.Tech CSE III I, November/December - 2018, 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...