JNTU

JNTU B.Tech II PRINCIPLES OF PROGRAMMING LANGUAGES Previous Question Paper (August/September - 2022 - R15)

B.Tech | II | II-II | R15 | August/September - 2022

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

Answer any five questions. All questions carry equal marks.

Main

115 marks
a

Give the syntax of ‘case’ statement in pascal using BNF notation and syntax graphs.

8 marks

Answer

In BNF notation, the case statement is defined as:

<case-statement> ::= case <expression> of <case-list> end
<case-list> ::= <case-element> | <case-list> ; <case-element>
<case-element> ::= <constant-list> : <statement> | <empty>
<constant-list> ::= <constant> | <constant-list> , <constant>

A syntax graph for the case statement is represented as a directed graph where:

  1. The entry point starts with the keyword 'case'.
  2. A path leads to an expression, followed by the keyword 'of'.
  3. The path then enters a loop for the case-list, where one or more constant lists are followed by a colon and a statement, separated by semicolons.
  4. The path terminates at the keyword 'end'.
b

Discuss the relative advantages of object oriented programming paradigm.

7 marks

Answer

The object-oriented programming (OOP) paradigm offers several significant advantages for software development:

  • Modularity and Encapsulation: OOP allows data and methods to be bundled into objects, hiding internal implementation details. This reduces complexity and prevents unintended interference between different parts of the system.
  • Reusability through Inheritance: New classes can derive properties and behaviors from existing classes, promoting code reuse and reducing redundancy.
  • Maintainability: Because code is organized into discrete, self-contained objects, debugging and updating specific features is easier without affecting the entire codebase.
  • Polymorphism: This feature allows objects of different types to be treated as instances of a common superclass, enabling flexible and extensible code that can handle new data types without major modifications.
  • Scalability: The structure of OOP makes it easier to manage large, complex software systems by breaking them down into manageable, interacting objects.
215 marks
a

Write the basic concept of denotational semantics.

8 marks

Answer

Sign in to view the complete answer paper.

b

Explain the various programming domains and their associated languages.

7 marks

Answer

Sign in to view the complete answer paper.

315 marks
a

Why type checking is used? Compare static and dynamic type checking and give their relative advantages.

8 marks

Answer

Sign in to view the complete answer paper.

b

How are different iterative statements represented? Explain with examples.

7 marks

Answer

Sign in to view the complete answer paper.

415 marks
a

Define an array. Explain the process of array initialization. Discuss the types of arrays available with examples.

8 marks

Answer

Sign in to view the complete answer paper.

b

Why unconditional branching is used? Explain the problems associated with it.

7 marks

Answer

Sign in to view the complete answer paper.

515 marks
a

How is subprogram overloaded? Give examples.

8 marks

Answer

Sign in to view the complete answer paper.

b

Write about scope and lifetime of variables with examples.

7 marks

Answer

Sign in to view the complete answer paper.

615 marks
a

Name the languages which allows co-routines. What are the characteristics of co-routines?

8 marks

Answer

Sign in to view the complete answer paper.

b

Briefly explain parameter passing methods with examples.

7 marks

Answer

Sign in to view the complete answer paper.

715 marks
a

Discuss the importance of exception handling in ADA. Explain.

8 marks

Answer

Sign in to view the complete answer paper.

b

Explain about c# threads.

7 marks

Answer

Sign in to view the complete answer paper.

815 marks
a

Give about the operations that can be performed on atoms and lists in LISP.

8 marks

Answer

Sign in to view the complete answer paper.

b

Write about the different types of type variables, Supported in python?

7 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 JNTU for B.Tech IT II II-II, August/September - 2022, 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...