JNTU
JNTU B.Tech III PRINCIPLES OF PROGRAMMING LANGUAGES Previous Question Paper (January/February - 2023 - R13)
Part A is compulsory (25 Marks). In Part B, answer any one question from each unit (50 Marks).
Part A
Specify influences on Language design.
Answer
Language design is primarily influenced by computer architecture (the von Neumann bottleneck), programming methodologies (structured, object-oriented, functional), and the need for efficiency, reliability, and maintainability.
Illustrate ambiguous grammar with an example.
Answer
A grammar is ambiguous if it can generate more than one distinct parse tree for a single string. For example, the expression grammar: <expr> → <expr> + <expr> | <id> is ambiguous because the string a + b + c can be parsed as (a + b) + c or a + (b + c).
Write short notes on guarded commands.
Answer
Sign in to view the complete answer paper.
Compare record and union.
Answer
Sign in to view the complete answer paper.
What are called recursive subprograms?
Answer
Sign in to view the complete answer paper.
Write about generic subprograms in Ada and C++.
Answer
Sign in to view the complete answer paper.
List applications of Logic programming.
Answer
Sign in to view the complete answer paper.
Specify Inference process of prolog.
Answer
Sign in to view the complete answer paper.
Define data abstraction.
Answer
Sign in to view the complete answer paper.
List and summarize module libraries in python.
Answer
Sign in to view the complete answer paper.
Part B
Explain the process of compilation in each phase of a compiler.
Answer
Sign in to view the complete answer paper.
Define BNF Grammar? How parse tree is generated for grammars? Explain with examples.
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.
List and differentiate programming paradigms.
Answer
Sign in to view the complete answer paper.
Explain Categories of Arrays with suitable examples.
Answer
Sign in to view the complete answer paper.
What do you mean by binding and binding time? Describe about various classes of binding times?
Answer
Sign in to view the complete answer paper.
Discuss implementation of expressions and statements in C and C++ with examples.
Answer
Sign in to view the complete answer paper.
Differentiate between static type checking and dynamic type checking and give their relative advantages.
Answer
Sign in to view the complete answer paper.
Illustrate stack based implementation of subprograms.
Answer
Sign in to view the complete answer paper.
Elaborate design issues of subprograms and operations with example.
Answer
Sign in to view the complete answer paper.
Explain about Co-Routines with an example.
Answer
Sign in to view the complete answer paper.
Discuss about pass-by-result and pass-by-value-result parameter passing methods, with a detailed programming example for each.
Answer
Sign in to view the complete answer paper.
Illustrate concept of abstraction and encapsulation with suitable examples.
Answer
Sign in to view the complete answer paper.
Elaborate how message passing helps in concurrency control? Explain with an example.
Answer
Sign in to view the complete answer paper.
List and discuss different types of propositions present in logic programming.
Answer
Sign in to view the complete answer paper.
Discuss about exception handling in Java with example.
Answer
Sign in to view the complete answer paper.
Discuss in detail about Scheme functional programming language.
Answer
Sign in to view the complete answer paper.
Give a comparison between functional and imperative languages.
Answer
Sign in to view the complete answer paper.
List and discuss in detail about data types in python with examples.
Answer
Sign in to view the complete answer paper.
Explain the data objects in LISP.
Answer
Sign in to view the complete answer paper.