JNTU
JNTU B.Tech II PRINCIPLES OF PROGRAMMING LANGUAGES Previous Question Paper (April/May - 2023 - R13)
Note: i) Question paper consists of Part A, Part B. ii) Part A is compulsory, which carries 25 marks. In Part A, Answer all questions. iii) In Part B, Answer any one question from each unit. Each question carries 10 marks and may have a, b as sub questions.
Part A
What is the difference between syntax and semantics?
Answer
Syntax refers to the formal rules that define the structure or grammar of a programming language, such as how statements and expressions are formed. Semantics refers to the meaning of those syntactically correct constructs, defining what the program actually does when executed.
What are the uses of BNF and EBNF?
Answer
BNF (Backus-Naur Form) and EBNF (Extended BNF) are used to provide a formal, precise notation for defining the syntax of programming languages. They serve as a standard for language designers to specify grammar rules and are essential for generating parsers and compilers that verify the structural correctness of source code.
What are named constants? Give an example?
Answer
Sign in to view the complete answer paper.
List the issues related to aliasing.
Answer
Sign in to view the complete answer paper.
What is local referencing environment?
Answer
Sign in to view the complete answer paper.
Give an example for parameters that are subprograms.
Answer
Sign in to view the complete answer paper.
How do you create a thread in Java? Give example?
Answer
Sign in to view the complete answer paper.
List the applications of logic programming.
Answer
Sign in to view the complete answer paper.
What are the features of ML?
Answer
Sign in to view the complete answer paper.
What are the uses of module library?
Answer
Sign in to view the complete answer paper.
Part B
List and describe different language domains.
Answer
Sign in to view the complete answer paper.
Discuss various language paradigms.
Answer
Sign in to view the complete answer paper.
List and explain different phases of compilation process.
Answer
Sign in to view the complete answer paper.
What is attribute grammar? Give an example.
Answer
Sign in to view the complete answer paper.
What are the different primitive data types provided by various languages? Discuss with examples?
Answer
Sign in to view the complete answer paper.
Define binding, type checking, strong typing, and aliasing.
Answer
Sign in to view the complete answer paper.
What is the need for iterative statements? Give examples.
Answer
Sign in to view the complete answer paper.
What are user defined data types? Give the syntax and purpose of them.
Answer
Sign in to view the complete answer paper.
Discuss the design issues of sub programming.
Answer
Sign in to view the complete answer paper.
What is static scope and dynamic scope? Explain the evaluation procedure.
Answer
Sign in to view the complete answer paper.
Explain different parameter passing methods.
Answer
Sign in to view the complete answer paper.
Discuss the design issues and advantages of overloaded sub programming.
Answer
Sign in to view the complete answer paper.
In detail, discuss the object oriented concepts in Ada 95.
Answer
Sign in to view the complete answer paper.
What are the basic elements of Prolog?
Answer
Sign in to view the complete answer paper.
How does concurrency is achieved by using Monitors? Discuss.
Answer
Sign in to view the complete answer paper.
What is an exception? What is exception propagation?
Answer
Sign in to view the complete answer paper.
Give the features of LISP.
Answer
Sign in to view the complete answer paper.
Compare functional and imperative languages.
Answer
Sign in to view the complete answer paper.
In detail give the key concepts of scripting language.
Answer
Sign in to view the complete answer paper.
Write a short notes on uses of separate compilation.
Answer
Sign in to view the complete answer paper.