Download AKTU (Dr. A.P.J. Abdul Kalam Technical University (AKTU), formerly Uttar Pradesh Technical University (UPTU) B-Tech 5th Semester (Fifth Semester) 2018-2019 RCS 503 Principles Of Programming Languages Question Paper
Paper Id: 110503 Roll No. m
B. Tech
(SEM V) THEORY EXAMINATION 2018-19
PRINCIPLES OF PROGRAMMING I .ANGUAGES
T ime: 3 H ours T otaI Marks: 70
Note: 1. Attempt all Sections.
SECTION A
l. Attempt all questions in brief. 2 x 7 = 14
a. Differentiate between Error and Exception
De?ne Class and Object brie?y.
Enlist the different times at which Binding can take place.
Describe Aliasing for Data Objects with an example.
Differentiate between Widen1ng and Narrowing conversion.
De?ne c0-rout1nes.
Write a function in ML to ?nd the maximum of two numbers
W770???
SECTION B
2. Attempt any three of the following: 7 x 3 = 21 : ?
21. Describe basic syntactic elementfei?a language.
b. I 1st and describe the va119u? i?echanisms for storage representatiqn of
Structured Data types. A159 describe the various speci?cations of Structures
Data types. .
c. Describe Overloaded Methods and Generic Method in detail 8011;! with the
examples.
. Discuss about Semaphores and Monitors
e. Describe facts and rules in Prolog with examples. Write a program that
describes relationships of the members in a family.
SECTION C .
3. Attempt any one part of the following: 7 t 7 x l = 7
(a) Explain the various programmmg 1311g11age paradigms,
(b) Describe the structure or the different phases of a compiler.
4. Attempt any one part of the foil Whig? 7 x l = 7
(3) Using suitable examples: ?iustrate the difference between:
1) Static and 13311311111; Type Checking
2) Implicit 311d Explicit Type Conversion
(b) How a pointer can ?be useful for programmers Also de?ne Dangling pointer
and void pointer with examples.
5. Attempt any one part of the following: 7 x l = 7
(a) 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.
(b) Describe Associations and Referencing Environment. Explain the different
components of Referencing Environment. With respect to the given program,
write down the Referencing Environment for SI and main.
program main;
var A, B, C: real;
procedure Sl(A : real);
var D' real;
begin
-Statements
Statements
end;
begin
?Statements
SKA);
-Statcments
end;
6. Attempt any one part of the following: 7 x 1 = 7
(a) De?ne Abstract classes and Abstract methods with example. Differentiate
between Abstraction and Encapsulation .' -
(b) Describe Inheritance and its types with suitable examples of each type.
7. Attempt any one part of the following: 7 x 1= 7
(a) Describe Functional Programing g(ianguages Write a recursive function in
SML to hnd the sum of digits d?Ea number.
(b) Explain Lambda Calculus; Explain the different reductions postnble tor
ev aluating a lambda calgulus Reduce (M Ax.f(fx))(1 y. y+1) to its normal form
This post was last modified on 29 January 2020