JNTU

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

B.Tech | II | II-II | R13 | April - 2018

Answer PaperPaper Code: 114DJMaximum 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 and differentiate between Syntax and Semantics.

2 marks

Answer

Syntax refers to the formal rules and structure that define the arrangement of symbols and keywords in a programming language. Semantics refers to the meaning or logical effect of those syntactically correct constructs when executed. Essentially, syntax governs the form, while semantics governs the behavior.

b

What are the three fundamental features of an object-oriented programming language?

3 marks

Answer

The three fundamental features of object-oriented programming are:

  • Encapsulation: Bundling data and methods that operate on that data within a single unit or class.
  • Inheritance: The ability of a new class to derive properties and behaviors from an existing class.
  • Polymorphism: The ability of different objects to respond to the same method call in their own specific way.
c

What are the advantages and disadvantages of decimal data types?

2 marks

Answer

Sign in to view the complete answer paper.

d

Explain the design issues for arrays.

3 marks

Answer

Sign in to view the complete answer paper.

e

Differentiate between a function and a procedure.

2 marks

Answer

Sign in to view the complete answer paper.

f

What kind of machines often use registers to pass parameters?

3 marks

Answer

Sign in to view the complete answer paper.

g

Define abstract data type and give example.

2 marks

Answer

Sign in to view the complete answer paper.

h

What are the legal return types of a destructor?

3 marks

Answer

Sign in to view the complete answer paper.

i

What is the use of the evaluation environment table?

2 marks

Answer

Sign in to view the complete answer paper.

j

Explain the use of the assert statement with example.

3 marks

Answer

Sign in to view the complete answer paper.

Part B

210 marks
a

What are the rules of EBNF? Explain in detail.

5 marks

Answer

Sign in to view the complete answer paper.

b

Compare the BNF with EBNF and discuss their advantages and disadvantages.

5 marks

Answer

Sign in to view the complete answer paper.

OR
310 marks
a

How can knowledge of programming language characteristics benefit the whole computing community? Explain.

5 marks

Answer

Sign in to view the complete answer paper.

b

What the primary use of attribute grammars? Discuss.

5 marks

Answer

Sign in to view the complete answer paper.

410 marks
a

Describe ordinal, enumeration, and sub range types.

5 marks

Answer

Sign in to view the complete answer paper.

b

What are the design issues for unions? Explain.

5 marks

Answer

Sign in to view the complete answer paper.

OR
510 marks
a

What is binding? What are the various methods of binding? Explain.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain about the Pointers and References in brief.

5 marks

Answer

Sign in to view the complete answer paper.

610 marks
a

What are design issues of functions? Discuss.

5 marks

Answer

Sign in to view the complete answer paper.

b

With example, explain about co routines.

5 marks

Answer

Sign in to view the complete answer paper.

OR
710 marks
a

What is subprogram? Explain with an example.

5 marks

Answer

Sign in to view the complete answer paper.

b

What are the design issues of subprograms? Discuss.

5 marks

Answer

Sign in to view the complete answer paper.

810 marks
a

What is the fundamental difference between a C++ class and an Ada package?

5 marks

Answer

Sign in to view the complete answer paper.

b

What is a friend function? What is a friend class? Give examples.

5 marks

Answer

Sign in to view the complete answer paper.

OR
910 marks
a

What are the various methods of Exception handling? Explain.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain about semaphores with an example.

5 marks

Answer

Sign in to view the complete answer paper.

1010 marks
a

What is tail recursion? Why is it important to define functions that use recursion to specify repetition to be tail recursive?

5 marks

Answer

Sign in to view the complete answer paper.

b

Write a brief note on Scripting languages.

5 marks

Answer

Sign in to view the complete answer paper.

OR
1110 marks
a

Explain about procedural abstraction in Python.

5 marks

Answer

Sign in to view the complete answer paper.

b

Discuss about the features of Haskell that make it very different from Scheme.

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, April - 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...