Firstranker's choice
www.FirstRanker.comPaper Id: 110503
Time: 3 Hours
--- Content provided by FirstRanker.com ---
www.FirstRanker.comRoll No.
B. Tech
(SEM V) THEORY EXAMINATION 2018-19
PRINCIPLES OF PROGRAMMING LANGUAGES
Note: 1. Attempt all Sections.
--- Content provided by FirstRanker.com ---
Total Marks: 70
SECTION A
1. Attempt all questions in brief. 2 x 7 =14
- Differentiate between Error and Exception.
- Define Class and Object briefly.
- Enlist the different times at which Binding can take place.
- Describe Aliasing for Data Objects with an example.
- Differentiate between Widening and Narrowing conversion.
- Define co-routines.
- Write a function in ML to find the maximum of two numbers.
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
SECTION B
2. Attempt any three of the following: 7x3= 21
- Describe basic syntactic elements of a language.
- List and describe the various mechanisms for storage age representation of Data types.
- Describe Overloaded Methods and Generic Method in detail along with the examples.
- Discuss about Semaphores and Monitors.
- Describe facts and rules in Prolog with examples. Write a program that describes relationships of the members in a family.
--- Content provided by FirstRanker.com ---
SECTION C
Attempt any one part of the following: 7x1=7
3.
--- Content provided by FirstRanker.com ---
- Explain the various programming language paradigms.
- Describe the structure or the different phases of a compiler.
Attempt any one part of the following: 7x1=7
4.
- Using suitable examples, illustrate the difference between:
- Static and Dynamic Type Checking
- Implicit and Explicit Type Conversion
--- Content provided by FirstRanker.com ---
- How a pointer can be useful for programmers. Also define Dangling pointer and void pointer with examples.
Attempt any one part of the following: 7x1=7
5.
--- Content provided by FirstRanker.com ---
- Illustrate the different parameter passing techniques along with the example of each technique. Using an example, show the difference between call by reference and call by Value-result.
- Describe Associations and Referencing Environment. Explain the different components of Referencing Environment. With respect to the given program, write down the Referencing Environment for S1 and main.
program main;
var A, B, C: real;
procedure S1(A: real);--- Content provided by FirstRanker.com ---
var D: real;
begin -Statements -Statements
end;
begin -Statements SI(A); -Statements
end:
--- Content provided by FirstRanker.com ---
Attempt any one part of the following: 7x1=7
6.
- Define Abstract classes and Abstract methods with example. Differentiate between Abstraction and Encapsulation.
- Describe Inheritance and its types with suitable examples of each type.
Attempt any one part of the following: 7x1=7
--- Content provided by FirstRanker.com ---
7.
- Describe Functional Programming languages. Write a recursive function in SML to find the sum of digits of a number.
- Explain Lambda Calculus Explain the different reductions possible for evaluating a lambda calculus. Reduce (? f. ? x. f (f x)) (? y. y+1) to its normal form.
--- 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