Jawaharlal Nehru Technological University Hyderabad

Jawaharlal Nehru Technological University Hyderabad B.Tech III Year PRINCIPLES OF PROGRAMMING LANGUAGES Previous Question Paper (July/August - 2023 - R13)

B.Tech | III Year | I | R13 | July/August - 2023

Answer PaperPaper Code: 115ANMaximum Marks: 75Time: 3 hours

Note: i) Question paper consists of Part A, Part B. ii) Part A is compulsory, which carries 25 marks. In Part A, Answer all questions. iii) In Part B, Answer any one question from each unit. Each question carries 10 marks and may have a, b as sub questions.

Part A

125 marks
a

Compare the behavior of imperative paradigm and functional paradigm.

2 marks

Answer

The imperative paradigm focuses on describing how a program operates through a sequence of statements that change the program state via assignments. In contrast, the functional paradigm treats computation as the evaluation of mathematical functions, avoiding mutable state and changing data.

b

What is virtual machine, specify its purpose?

3 marks

Answer

A virtual machine is a software-based emulation of a physical computer system that executes programs like a real machine. Its primary purpose is to provide platform independence by allowing code (such as Java bytecode) to run on any hardware architecture that supports the virtual machine, effectively decoupling software from underlying hardware.

c

What is strong typing?

2 marks

Answer

Sign in to view the complete answer paper.

d

What is a pointer variable? How does it differ with normal variable?

3 marks

Answer

Sign in to view the complete answer paper.

e

What is static scope?

2 marks

Answer

Sign in to view the complete answer paper.

f

Differentiate ‘&’ with ‘&&’.

3 marks

Answer

Sign in to view the complete answer paper.

g

List out the importance of Polymorphism.

2 marks

Answer

Sign in to view the complete answer paper.

h

What is the importance of the Event handler?

3 marks

Answer

Sign in to view the complete answer paper.

i

Write a code for subtraction of two numbers using imperative language.

2 marks

Answer

Sign in to view the complete answer paper.

j

Write a program to find out the area of a triangle using functional paradigm.

3 marks

Answer

Sign in to view the complete answer paper.

Part B

2

Discuss on:

10 marks
a

The grammar for simple statements

5 marks

Answer

Sign in to view the complete answer paper.

b

Attribute Grammar and Ambiguous Grammar.

5 marks

Answer

Sign in to view the complete answer paper.

OR
310 marks
a

Derive the Parse tree for the statement A= A+(B*C).

6 marks

Answer

Sign in to view the complete answer paper.

b

Explain the need and importance of syntax and semantics.

4 marks

Answer

Sign in to view the complete answer paper.

4

Explain about:

10 marks
a

Conditional statements

5 marks

Answer

Sign in to view the complete answer paper.

b

Looping statements with neat sketch and example.

5 marks

Answer

Sign in to view the complete answer paper.

OR
5

Explain the various expressions with suitable example.

10 marks

Answer

Sign in to view the complete answer paper.

610 marks
a

Explain scope and lifetime of a variable using examples.

5 marks

Answer

Sign in to view the complete answer paper.

b

Distinguish between static and dynamic scoping.

5 marks

Answer

Sign in to view the complete answer paper.

OR
7

Write a Program to find the sum of two complex numbers using user defined overloading concepts.

10 marks

Answer

Sign in to view the complete answer paper.

810 marks
a

Narrate on the elements of prolog

3 marks

Answer

Sign in to view the complete answer paper.

b

What is the difference between the C++ event handler and JAVA event handler?

7 marks

Answer

Sign in to view the complete answer paper.

OR
910 marks
a

Explain about assertions in exceptions.

5 marks

Answer

Sign in to view the complete answer paper.

b

Enumerate on the behavior of finally keyword.

5 marks

Answer

Sign in to view the complete answer paper.

1010 marks
a

List out the behavioral differences of procedural abstraction and data abstraction.

4 marks

Answer

Sign in to view the complete answer paper.

b

Explain about the values and types of python.

6 marks

Answer

Sign in to view the complete answer paper.

OR
1110 marks
a

Write notes on first functional programming language.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain about the importance of bindings and scope.

5 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 CSE III Year I, July/August - 2023, R13.

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