JNTU
JNTU B.Tech II PRINCIPLES OF PROGRAMMING LANGUAGES Previous Question Paper (May - 2019 - R13)
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.
PART A
What is a nonprocedural language?
Answer
A nonprocedural language is a declarative programming language where the programmer specifies what the program should accomplish rather than how to achieve it through explicit step-by-step instructions. Examples include SQL and Prolog.
Define CFG.
Answer
A Context-Free Grammar (CFG) is a formal grammar used to define the syntax of a programming language. It is defined by a 4-tuple (V, Σ, R, S), where V is a set of non-terminals, Σ is a set of terminals, R is a set of production rules, and S is the start symbol.
What is a heterogeneous array?
Answer
Sign in to view the complete answer paper.
What is binding?
Answer
Sign in to view the complete answer paper.
What is subprogram Protocol?
Answer
Sign in to view the complete answer paper.
What are formal parameters?
Answer
Sign in to view the complete answer paper.
What do you mean by friend function?
Answer
Sign in to view the complete answer paper.
What is the purpose of C++ constructor?
Answer
Sign in to view the complete answer paper.
What are the applications of functional programming languages?
Answer
Sign in to view the complete answer paper.
What does procedural abstraction mean?
Answer
Sign in to view the complete answer paper.
PART B
What are the advantages in implementing a language with a pure interpreter? Discuss briefly.
Answer
Sign in to view the complete answer paper.
What is the meaning of the preconditions and post conditions of given statement in axiomatic semantics? Explain.
Answer
Sign in to view the complete answer paper.
Write EBNF description for a Java method call statement.
Answer
Sign in to view the complete answer paper.
Write EBNF description for a C union definition.
Answer
Sign in to view the complete answer paper.
Give an overview of iteration statements.
Answer
Sign in to view the complete answer paper.
Illustrate with examples what bindings take place at compile time, load time, link time and run time.
Answer
Sign in to view the complete answer paper.
Explain about the problems associated with pointers.
Answer
Sign in to view the complete answer paper.
What are the advantages of user-defined enumeration types? Discuss briefly.
Answer
Sign in to view the complete answer paper.
Explain about the choices for referencing environment of parameters that are subprograms.
Answer
Sign in to view the complete answer paper.
Consider the following program written in C syntax... For each of the following parameter passing-methods, what are all of the values of the variables value and list after each of the three calls to swap?
Answer
Sign in to view the complete answer paper.
What are the advantages and disadvantages of dynamic local variables? Discuss briefly.
Answer
Sign in to view the complete answer paper.
Illustrate co routines with examples.
Answer
Sign in to view the complete answer paper.
How can an exception handler be written in Java so that it handles any exception? Illustrate with an example.
Answer
Sign in to view the complete answer paper.
Define Abstract Data type? What are the advantages of the two parts of the definition of abstract data type?
Answer
Sign in to view the complete answer paper.
How is the type system of Java different from that of C++? Illustrate with an example.
Answer
Sign in to view the complete answer paper.
Explain the following with respect to LISP: data types, structures and LISP interpreter.
Answer
Sign in to view the complete answer paper.
Explain procedural abstraction with respect to Python.
Answer
Sign in to view the complete answer paper.
Explain data abstraction with respect to Python.
Answer
Sign in to view the complete answer paper.