JNTU
JNTU B.Tech II PRINCIPLES OF PROGRAMMING LANGUAGES Previous Question Paper (April - 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 and differentiate between Syntax and Semantics.
Answer
Syntax refers to the formal rules and structure that define the arrangement of symbols and keywords in a programming language. Semantics refers to the meaning or logical effect of those syntactically correct constructs when executed. Essentially, syntax governs the form, while semantics governs the behavior.
What are the three fundamental features of an object-oriented programming language?
Answer
The three fundamental features of object-oriented programming are:
- Encapsulation: Bundling data and methods that operate on that data within a single unit or class.
- Inheritance: The ability of a new class to derive properties and behaviors from an existing class.
- Polymorphism: The ability of different objects to respond to the same method call in their own specific way.
What are the advantages and disadvantages of decimal data types?
Answer
Sign in to view the complete answer paper.
Explain the design issues for arrays.
Answer
Sign in to view the complete answer paper.
Differentiate between a function and a procedure.
Answer
Sign in to view the complete answer paper.
What kind of machines often use registers to pass parameters?
Answer
Sign in to view the complete answer paper.
Define abstract data type and give example.
Answer
Sign in to view the complete answer paper.
What are the legal return types of a destructor?
Answer
Sign in to view the complete answer paper.
What is the use of the evaluation environment table?
Answer
Sign in to view the complete answer paper.
Explain the use of the assert statement with example.
Answer
Sign in to view the complete answer paper.
Part B
What are the rules of EBNF? Explain in detail.
Answer
Sign in to view the complete answer paper.
Compare the BNF with EBNF and discuss their advantages and disadvantages.
Answer
Sign in to view the complete answer paper.
How can knowledge of programming language characteristics benefit the whole computing community? Explain.
Answer
Sign in to view the complete answer paper.
What the primary use of attribute grammars? Discuss.
Answer
Sign in to view the complete answer paper.
Describe ordinal, enumeration, and sub range types.
Answer
Sign in to view the complete answer paper.
What are the design issues for unions? Explain.
Answer
Sign in to view the complete answer paper.
What is binding? What are the various methods of binding? Explain.
Answer
Sign in to view the complete answer paper.
Explain about the Pointers and References in brief.
Answer
Sign in to view the complete answer paper.
What are design issues of functions? Discuss.
Answer
Sign in to view the complete answer paper.
With example, explain about co routines.
Answer
Sign in to view the complete answer paper.
What is subprogram? Explain with an example.
Answer
Sign in to view the complete answer paper.
What are the design issues of subprograms? Discuss.
Answer
Sign in to view the complete answer paper.
What is the fundamental difference between a C++ class and an Ada package?
Answer
Sign in to view the complete answer paper.
What is a friend function? What is a friend class? Give examples.
Answer
Sign in to view the complete answer paper.
What are the various methods of Exception handling? Explain.
Answer
Sign in to view the complete answer paper.
Explain about semaphores with an example.
Answer
Sign in to view the complete answer paper.
What is tail recursion? Why is it important to define functions that use recursion to specify repetition to be tail recursive?
Answer
Sign in to view the complete answer paper.
Write a brief note on Scripting languages.
Answer
Sign in to view the complete answer paper.
Explain about procedural abstraction in Python.
Answer
Sign in to view the complete answer paper.
Discuss about the features of Haskell that make it very different from Scheme.
Answer
Sign in to view the complete answer paper.