FirstRanker's choice FirstRanker.com
Printed pages: 2
Paper ID: 1038
--- Content provided by FirstRanker.com ---
Sub Code: NCS-503
Roll No.
B.TECH.
(SEM-V) THEORY EXAMINATION 2017-18
PRINCIPLES OF PROGRAMMING LANGUAGES
--- Content provided by FirstRanker.com ---
TIME: 3 Hours
TOTAL MARKS: 100
Note: 1. Attempt all Sections. If require any missing data; then choose suitably.
SECTION- A
1. Attempt all questions in brief: 2X10=20
--- Content provided by FirstRanker.com ---
- How does the programming environment influence the language design?
- Explain the term language semantics.
- Explain the public, private and protected access specifiers.
- Define bootstrapping.
- Discuss the need of language translators.
- Differentiate between compiler and interpreter.
- What is an inline function?
- Write down the different properties of a constructor.
- Define a procedure in LISP to calculate cube of a number.
- What is an abstract data type?
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
2. Note: Attempt any three of the following: 10X3=30
- Explain the structure or phases of a compiler.
- Explain the facts and rules in Prolog with suitable example.
- Explain different ways of storage representation of data structure.
- What are the general syntactic criteria of a programming language?
- What are the various fields of an activation record? Explain how activation record looks like for every recursive call in case of factorial. Also draw activation tree for the same.
--- Content provided by FirstRanker.com ---
SECTION-C
3. Attempt any one part of the following: 10X1=10
- What is lambda calculus? Write a note on free and bound variables in lambda calculus.
- Explain the concept of inheritance and its types with suitable example of each of them.
--- Content provided by FirstRanker.com ---
4. Attempt any one part of the following: 10X1=10
- Describe subprogram control and its types in detail with the help of an example of each of them.
- Explain the various programming language paradigms.
5. Attempt any one part of the following: 10X1=10
- Differentiate between call by value and call by reference parameter passing mechanism with the help of suitable example.
- Explain the structure of List used in LISP. Also discuss the commonly used list manipulation functions.
--- Content provided by FirstRanker.com ---
6. Attempt any one part of the following: 10X1=10
- Describe sequence control in various statements with suitable examples.
- Write a Recursive Lisp function to find largest number from a given list.
7. Attempt any one part of the following: 10X1=10
--- Content provided by FirstRanker.com ---
- Explain the concept of subtyping with suitable example. Also explain the properties of subtyping.
- Write short note on-
- Variables, constants and literals for a language.
- Compare C, C++ and LISP on the basis of various attributes.
--- Content provided by FirstRanker.com ---
This download link is referred from the post: AKTU B-Tech Last 10 Years 2010-2020 Previous Question Papers || Dr. A.P.J. Abdul Kalam Technical University