JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD B.Tech II PRINCIPLES OF PROGRAMMING LANGUAGES Previous Question Paper (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.
Part A
Define syntax and semantics.
Answer
Syntax refers to the formal rules that define the structure and arrangement of symbols, tokens, and statements in a programming language. Semantics defines the meaning of those syntactically correct constructs, specifying the actions the computer performs when the code is executed.
What is Parse tree?
Answer
A Parse tree is a hierarchical, graphical representation of the derivation of a string according to the rules of a context-free grammar. The root represents the start symbol, internal nodes represent non-terminal symbols, and leaf nodes represent terminal symbols, illustrating how a compiler parses source code.
What is strong typing?
Answer
Sign in to view the complete answer paper.
Explain about guarded commands.
Answer
Sign in to view the complete answer paper.
What is a co routine?
Answer
Sign in to view the complete answer paper.
What is the scope and life time of a variable?
Answer
Sign in to view the complete answer paper.
Define Message Passing.
Answer
Sign in to view the complete answer paper.
What are the advantages of monitors?
Answer
Sign in to view the complete answer paper.
What are the data types supported in python?
Answer
Sign in to view the complete answer paper.
Differentiate between procedural and data abstraction.
Answer
Sign in to view the complete answer paper.
Part B - Unit I
Explain about the factors that influence the language design.
Answer
Sign in to view the complete answer paper.
Explain about various programming domains.
Answer
Sign in to view the complete answer paper.
Explain about the process of compilation.
Answer
Sign in to view the complete answer paper.
Distinguish between general language generator and general language recognizer.
Answer
Sign in to view the complete answer paper.
Unit II
What are the design issues for logically controlled loop statements?
Answer
Sign in to view the complete answer paper.
Explain the problems associated with unconditional branching.
Answer
Sign in to view the complete answer paper.
What is short circuit evaluation? Explain.
Answer
Sign in to view the complete answer paper.
Describe the process of array initialization.
Answer
Sign in to view the complete answer paper.
Unit III
Explain in detail about generic subprograms.
Answer
Sign in to view the complete answer paper.
Distinguish between static scoping and dynamic scoping with an example.
Answer
Sign in to view the complete answer paper.
Explain how subprogram names are passed as parameters. Illustrate with an example.
Answer
Sign in to view the complete answer paper.
Explain design issues that are involved in functions.
Answer
Sign in to view the complete answer paper.
Unit IV
Explain the basic concepts of exception handling? What are the design issues for exception handling systems?
Answer
Sign in to view the complete answer paper.
Explain in brief about Exception handling in C++.
Answer
Sign in to view the complete answer paper.
What are the language design issues for abstract data types?
Answer
Sign in to view the complete answer paper.
Explain in detail Java Threads.
Answer
Sign in to view the complete answer paper.
Unit V
Explain in detail procedural abstraction in python.
Answer
Sign in to view the complete answer paper.
Explain in detail scope and bindings in python.
Answer
Sign in to view the complete answer paper.
Differentiate between functional and imperative languages.
Answer
Sign in to view the complete answer paper.
Explain data abstraction in python.
Answer
Sign in to view the complete answer paper.