JNTU
JNTU B.Tech III PRINCIPLES OF PROGRAMMING LANGUAGES Previous Question Paper (May - 2018 - R13)
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
In what way do operational semantics differ from denotational semantics?
Answer
Operational semantics describe the meaning of a program by specifying the sequence of steps a virtual or physical machine takes to execute it. In contrast, denotational semantics define the meaning of a program by mapping it to mathematical objects, such as functions or values, focusing on what the program computes rather than how it executes.
A programming language can be compiled or interpreted. Give relative advantages and disadvantages of compilation and interpretation.
Answer
Compilation offers faster execution speed and better optimization, but requires a separate compilation phase and makes debugging more complex. Interpretation allows for easier debugging and platform independence, but generally results in slower execution because the source code is analyzed and executed line-by-line during runtime.
Define Union type.
Answer
Sign in to view the complete answer paper.
How pointers are represented and used in C and C++?
Answer
Sign in to view the complete answer paper.
What are the different categories of subprograms?
Answer
Sign in to view the complete answer paper.
Give a brief note on Scope and lifetime of variable.
Answer
Sign in to view the complete answer paper.
What is the purpose of the Java Finally clause?
Answer
Sign in to view the complete answer paper.
Explain the applications of logic programming.
Answer
Sign in to view the complete answer paper.
Write about functions in ML and Haskell.
Answer
Sign in to view the complete answer paper.
Discuss the storage and Control in python.
Answer
Sign in to view the complete answer paper.
Part B
What is need for study of programming languages? Explain.
Answer
Sign in to view the complete answer paper.
Describe the Programming Paradigms.
Answer
Sign in to view the complete answer paper.
Define Ambiguity. Write short notes on attributed grammars.
Answer
Sign in to view the complete answer paper.
Explain briefly about the Denotational semantics with example.
Answer
Sign in to view the complete answer paper.
What is an array? Explain about various array operations with an example.
Answer
Sign in to view the complete answer paper.
Explain the syntax of Ada Union Type.
Answer
Sign in to view the complete answer paper.
List and explain the design issues for all iterative control statements.
Answer
Sign in to view the complete answer paper.
Describe the Design issues of subprograms and operations.
Answer
Sign in to view the complete answer paper.
Briefly explain the static and dynamic scope.
Answer
Sign in to view the complete answer paper.
What are the general subprogram characteristics? Explain.
Answer
Sign in to view the complete answer paper.
Explain how Binary semaphore provides solution to the competition synchronization problem with example pseudo code.
Answer
Sign in to view the complete answer paper.
What is exception handling? Explain about exception handling in Java.
Answer
Sign in to view the complete answer paper.
What is the difference between functional and imperative languages?
Answer
Sign in to view the complete answer paper.
Discuss the data types supported in Python.
Answer
Sign in to view the complete answer paper.
Explain the common characteristics of the scripting languages.
Answer
Sign in to view the complete answer paper.