JNTU
JNTU B.Tech III Year PRINCIPLES OF PROGRAMMING LANGUAGES Previous Question Paper (November/December - 2017 - 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
List the principal phases of compilation.
Answer
The principal phases of compilation are: Lexical Analysis, Syntax Analysis, Semantic Analysis, Intermediate Code Generation, Code Optimization, and Code Generation.
Explain the features of denotational semantics.
Answer
Denotational semantics defines the meaning of a program by mapping it to mathematical objects. Its key features include: it is based on recursive function theory, it uses a formal mathematical notation to describe program state changes, and it focuses on the denotation (the mathematical value) of program constructs rather than the sequence of execution steps.
Explain about guarded commands.
Answer
Sign in to view the complete answer paper.
Differentiate between user defined and primitive data types with an example.
Answer
Sign in to view the complete answer paper.
Explain about the local referencing environments.
Answer
Sign in to view the complete answer paper.
Explain the design issues for functions.
Answer
Sign in to view the complete answer paper.
Explain the parts of smalltalk class.
Answer
Sign in to view the complete answer paper.
Distinguish between Competitive Synchronization and Cooperation synchronization.
Answer
Sign in to view the complete answer paper.
What is the type inferencing used in ML.
Answer
Sign in to view the complete answer paper.
What are the applications of functional programming languages.
Answer
Sign in to view the complete answer paper.
Part B
Distinguish between ambiguous grammer and attribute grammar with an example.
Answer
Sign in to view the complete answer paper.
Construct the parse tree for the simple statement.
Answer
Sign in to view the complete answer paper.
Explain about the preconditions and postconditions of a given statement mean in axiomatic semantics.
Answer
Sign in to view the complete answer paper.
Describe the important factors influencing the writability of a language.
Answer
Sign in to view the complete answer paper.
Describe about the pointers in FORTRAN 90, Ada, pascal with an example.
Answer
Sign in to view the complete answer paper.
Write the syntax and semantic rule of an attribute grammer for simple assignment statements.
Answer
Sign in to view the complete answer paper.
Explain about the control structures with an example.
Answer
Sign in to view the complete answer paper.
Explain the different types of Union with an example.
Answer
Sign in to view the complete answer paper.
Explain the different parameter passing methods with an example.
Answer
Sign in to view the complete answer paper.
What is an overloaded subprogram explain with an example.
Answer
Sign in to view the complete answer paper.
What are the characteristics of co-routine feature? List the languages which allow coroutines.
Answer
Sign in to view the complete answer paper.
What is semaphore. Explain the different types of semaphores.
Answer
Sign in to view the complete answer paper.
Explain the design issues of an exception handling system.
Answer
Sign in to view the complete answer paper.
Explain about the data abstraction for SIMULA 67.
Answer
Sign in to view the complete answer paper.
Explain how to handle the exceptions in C++.
Answer
Sign in to view the complete answer paper.
Write a function that computes the sum of numbers using vectors in LISP.
Answer
Sign in to view the complete answer paper.
Explain the different types of data types used in Python.
Answer
Sign in to view the complete answer paper.
Explain how to handle exceptions in Java with an example.
Answer
Sign in to view the complete answer paper.
Explain about the fundamentals of functional programming languages.
Answer
Sign in to view the complete answer paper.