JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD B.Tech III PRINCIPLES OF PROGRAMMING LANGUAGES Previous Question Paper (November/December - 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
Define axiomatic semantics.
Answer
Axiomatic semantics is a formal approach to defining the meaning of a programming language based on the logical assertions that can be made about the state of a program before and after the execution of its statements, typically expressed as preconditions and postconditions.
Give an attribute grammar for simple assignment statements.
Answer
An attribute grammar for a simple assignment statement <var> = <expr> can be defined as follows:
- <assign> → <var> = <expr>
- <expr> → <var> + <var>
- <var> → A | B | C
Attributes: actual_type (synthesized) and expected_type (inherited). The rule for assignment is: <assign>.expected_type <- <var>.actual_type.
What do you mean by precision and range?
Answer
Sign in to view the complete answer paper.
What is aliasing? What are the problems associated with it?
Answer
Sign in to view the complete answer paper.
Differentiate between actual and formal parameters.
Answer
Sign in to view the complete answer paper.
What are the three general characteristics of subprograms?
Answer
Sign in to view the complete answer paper.
Define abstract data type.
Answer
Sign in to view the complete answer paper.
What is the purpose of a C++ destructor?
Answer
Sign in to view the complete answer paper.
How Haskell is different from ML?
Answer
Sign in to view the complete answer paper.
What is procedural abstraction? Give example.
Answer
Sign in to view the complete answer paper.
Part B
Discuss various programming domains and their associated languages.
Answer
Sign in to view the complete answer paper.
Describe the basic concept of denotational semantics.
Answer
Sign in to view the complete answer paper.
What are the potential benefits of studying programming language concepts?
Answer
Sign in to view the complete answer paper.
Explain with examples how syntactic design choices affect readability.
Answer
Sign in to view the complete answer paper.
What do you mean by binding? Give examples of some of the bindings and their binding times.
Answer
Sign in to view the complete answer paper.
Evaluate the two approaches for supporting dynamic allocation and deallocation for dynamic length strings.
Answer
Sign in to view the complete answer paper.
Explain in detail various design issues of character string types.
Answer
Sign in to view the complete answer paper.
What are dangling pointers and lost heap-dynamic variables? How are they created?
Answer
Sign in to view the complete answer paper.
How co-routines are different from conventional subprograms?
Answer
Sign in to view the complete answer paper.
Explain type checking technique in parameter passing.
Answer
Sign in to view the complete answer paper.
What is a subprogram? Discuss the design issues of subprograms.
Answer
Sign in to view the complete answer paper.
Write a detailed note on local referencing environments.
Answer
Sign in to view the complete answer paper.
What are the various methods of exception handling? Discuss.
Answer
Sign in to view the complete answer paper.
How message passing is implemented in ADA? Give examples.
Answer
Sign in to view the complete answer paper.
Explain how information hiding is provided in an ADA package.
Answer
Sign in to view the complete answer paper.
Discuss about the basic elements of Prolog with examples.
Answer
Sign in to view the complete answer paper.
Explain the important functions of LISP.
Answer
Sign in to view the complete answer paper.
Discuss the key concepts of scripting languages.
Answer
Sign in to view the complete answer paper.
What are the three features of Haskell that makes very different from schema?
Answer
Sign in to view the complete answer paper.
What are the data types supported in Python? Discuss.
Answer
Sign in to view the complete answer paper.