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)
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
Compare the behavior of imperative paradigm and functional paradigm.
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.
What is virtual machine, specify its purpose?
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.
What is strong typing?
Answer
Sign in to view the complete answer paper.
What is a pointer variable? How does it differ with normal variable?
Answer
Sign in to view the complete answer paper.
What is static scope?
Answer
Sign in to view the complete answer paper.
Differentiate ‘&’ with ‘&&’.
Answer
Sign in to view the complete answer paper.
List out the importance of Polymorphism.
Answer
Sign in to view the complete answer paper.
What is the importance of the Event handler?
Answer
Sign in to view the complete answer paper.
Write a code for subtraction of two numbers using imperative language.
Answer
Sign in to view the complete answer paper.
Write a program to find out the area of a triangle using functional paradigm.
Answer
Sign in to view the complete answer paper.
Part B
Discuss on:
The grammar for simple statements
Answer
Sign in to view the complete answer paper.
Attribute Grammar and Ambiguous Grammar.
Answer
Sign in to view the complete answer paper.
Derive the Parse tree for the statement A= A+(B*C).
Answer
Sign in to view the complete answer paper.
Explain the need and importance of syntax and semantics.
Answer
Sign in to view the complete answer paper.
Explain about:
Conditional statements
Answer
Sign in to view the complete answer paper.
Looping statements with neat sketch and example.
Answer
Sign in to view the complete answer paper.
Explain the various expressions with suitable example.
Answer
Sign in to view the complete answer paper.
Explain scope and lifetime of a variable using examples.
Answer
Sign in to view the complete answer paper.
Distinguish between static and dynamic scoping.
Answer
Sign in to view the complete answer paper.
Write a Program to find the sum of two complex numbers using user defined overloading concepts.
Answer
Sign in to view the complete answer paper.
Narrate on the elements of prolog
Answer
Sign in to view the complete answer paper.
What is the difference between the C++ event handler and JAVA event handler?
Answer
Sign in to view the complete answer paper.
Explain about assertions in exceptions.
Answer
Sign in to view the complete answer paper.
Enumerate on the behavior of finally keyword.
Answer
Sign in to view the complete answer paper.
List out the behavioral differences of procedural abstraction and data abstraction.
Answer
Sign in to view the complete answer paper.
Explain about the values and types of python.
Answer
Sign in to view the complete answer paper.
Write notes on first functional programming language.
Answer
Sign in to view the complete answer paper.
Explain about the importance of bindings and scope.
Answer
Sign in to view the complete answer paper.