JNTU
JNTU B.Tech III PRINCIPLES OF PROGRAMMING LANGUAGES Previous Question Paper (May/June - 2019 - R13)
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.
Part A
Explain about the Virtual Machine.
Answer
A Virtual Machine is a software-based emulation of a physical computer system. It provides an abstraction layer between the hardware and the software, allowing programs to run in a platform-independent environment by executing intermediate code (like bytecode) rather than machine-specific instructions.
What are the uses of attribute grammar?
Answer
Attribute grammars are primarily used to:
- Define the static semantics of a programming language.
- Perform type checking and ensure language constraints that cannot be expressed by context-free grammars.
- Facilitate the translation process by associating semantic attributes with grammar symbols to store information during parsing.
Explain about the problems in unconditional branching.
Answer
Sign in to view the complete answer paper.
Explain about the enumerated data type.
Answer
Sign in to view the complete answer paper.
What are the characteristics of subprograms?
Answer
Sign in to view the complete answer paper.
Explain about coroutines.
Answer
Sign in to view the complete answer paper.
Why does Java not have a destructors?
Answer
Sign in to view the complete answer paper.
What are the applications of logic programming?
Answer
Sign in to view the complete answer paper.
Describe the scoping rule in ML.
Answer
Sign in to view the complete answer paper.
Explain about the fundamentals of FPL.
Answer
Sign in to view the complete answer paper.
Part B
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 steps involved in the language evaluation criteria.
Answer
Sign in to view the complete answer paper.
Explain the different categories of languages.
Answer
Sign in to view the complete answer paper.
Draw and explain the flow chart for compilation process.
Answer
Sign in to view the complete answer paper.
Explain about the mixed-mode assignments that are used in Ada and Java Languages.
Answer
Sign in to view the complete answer paper.
Explain about the type compatibility with an example.
Answer
Sign in to view the complete answer paper.
What is type checking? Differentiate between static and dynamic type checking and give their relative advantages.
Answer
Sign in to view the complete answer paper.
Define an array? Explain how to initialize an array? Explain the different types of arrays.
Answer
Sign in to view the complete answer paper.
Describe about the static and dynamic scope of variables with an example.
Answer
Sign in to view the complete answer paper.
Define sub program. What are the distinct categories of subprograms.
Answer
Sign in to view the complete answer paper.
Explain about the generic subprograms in Ada with an example.
Answer
Sign in to view the complete answer paper.
Explain about the semantic models of parameter passing.
Answer
Sign in to view the complete answer paper.
Explain about the concurrency in Ada 95.
Answer
Sign in to view the complete answer paper.
Explain the basic elements of prolog.
Answer
Sign in to view the complete answer paper.
Explain how to handle the exceptions in Ada.
Answer
Sign in to view the complete answer paper.
What are the design issues of abstract data types.
Answer
Sign in to view the complete answer paper.
Explain about the internal representation of two LISP lists.
Answer
Sign in to view the complete answer paper.
Describe the scoping rule in common LISP and Haskell.
Answer
Sign in to view the complete answer paper.
Compare the functional programming languages with imperative languages.
Answer
Sign in to view the complete answer paper.
Write a LISP function Fib(n) that computes nth Fibonacci number.
Answer
Sign in to view the complete answer paper.