JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD

JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD B.Tech III PRINCIPLES OF PROGRAMMING LANGUAGES Previous Question Paper (March - 2021 - R18)

B.Tech | III | I | R18 | March - 2021

Answer PaperPaper Code: 155CXMaximum Marks: 75Time: 3 Hours

Answer any five questions

All questions carry equal marks

Main

115 marks
a

What are the various language evaluation criteria and the characteristics that affect them? Discuss.

7 marks

Answer

Language evaluation criteria are used to assess the quality of programming languages. The primary criteria include:

  1. Readability: The ease with which programs can be read and understood. Characteristics affecting this include orthogonality, data types, syntax design, and support for abstraction.
  2. Writability: The ease with which a language can be used to create programs. It is influenced by expressivity, support for abstraction, and simplicity.
  3. Reliability: The degree to which a program performs to its specifications under all conditions. Key factors are type checking, exception handling, aliasing, and readability/writability.
  4. Cost: The total expense of using the language, including training programmers, writing code, compiling, executing, and maintaining software.

Other criteria include portability, generality, and well-definedness.

b

Explain about various programming domains and their features.

8 marks

Answer

Programming languages are categorized based on their intended application domains, each requiring specific features:

  1. Scientific Applications: These require efficient floating-point calculations and array processing. Examples include Fortran and Ada, which emphasize performance and numerical precision.
  2. Business Applications: These focus on producing reports, decimal arithmetic, and character data handling. COBOL is the classic example, designed for ease of use in data management.
  3. Artificial Intelligence: These require symbolic manipulation and dynamic memory management. Languages like LISP and Prolog excel here due to their ability to process lists and implement logic-based reasoning.
  4. Systems Programming: These require high execution efficiency and low-level access to hardware. C and C++ are common, providing features for memory management and direct machine control.
  5. Web Software: These involve a mix of markup, scripting, and general-purpose languages. They require support for concurrency, security, and dynamic content generation, as seen in JavaScript, PHP, and Java.
215 marks
a

Write BNF and EBNF versions of an expression grammar.

8 marks

Answer

Sign in to view the complete answer paper.

b

Explain in detail about attribute grammars with examples.

7 marks

Answer

Sign in to view the complete answer paper.

315 marks
a

Distinguish between name type compatibility and structure type compatibility.

8 marks

Answer

Sign in to view the complete answer paper.

b

Discuss the design issues of multiple selection constructs.

7 marks

Answer

Sign in to view the complete answer paper.

415 marks
a

What is a short-circuit evaluation? How does operand evaluation order interact with functional side effects?

7 marks

Answer

Sign in to view the complete answer paper.

b

Explain the design issues of subprograms and operations.

8 marks

Answer

Sign in to view the complete answer paper.

515 marks
a

Write about parameterized abstract data types with an example in C++.

8 marks

Answer

Sign in to view the complete answer paper.

b

What are the language design requirements for a language that supports abstract data types?

7 marks

Answer

Sign in to view the complete answer paper.

615 marks
a

Why were imperative features added to most dialects of LISP? Discuss.

7 marks

Answer

Sign in to view the complete answer paper.

b

Explain in detail about exception handling in Ada.

8 marks

Answer

Sign in to view the complete answer paper.

715 marks
a

What are the applications of functional programming? Explain.

7 marks

Answer

Sign in to view the complete answer paper.

b

What are the features of Prolog? Discuss the basic elements of Prolog.

8 marks

Answer

Sign in to view the complete answer paper.

815 marks
a

Write the key concepts of scripting languages and explain them.

7 marks

Answer

Sign in to view the complete answer paper.

b

Differentiate between procedural abstraction and data abstraction with examples.

8 marks

Answer

Sign in to view the complete answer paper.

About this paper

This page contains the question paper of PRINCIPLES OF PROGRAMMING LANGUAGES from JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD for B.Tech IT III I, March - 2021, R18.

For the solved question paper with answers, switch to the Answer Paper tab.

Other papers in PRINCIPLES OF PROGRAMMING LANGUAGES

Loading Question Papers

Fetching data from database...