Semester : SEMESTER 7
Subject : Programming Paradigms
Year : 2021
Term : DECEMBER
Branch : COMPUTER SCIENCE AND ENGINEERING
Scheme : 2015 Full Time
Course Code : CS 403
Page:1
B 10000CS403122101 Pages: 3
Reg No.: Name:
APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY
Seventh Semester B.Tech Degree Regular and Supplementary Examination December 2021 (2015 Scheme)
Course Code: CS403
Course Name: PROGRAMMING PARADIGMS
Max. Marks: 100 Duration: 3 Hours
PARTA
Answer all questions, each carries 4 marks. Marks
1 Differentiate between static and Dynamic binding. (4)
2 Explain the use of Frame pointer and Stack pointer in stack based allocation (4)
mechanism.
With the help of a figure explain memory layout of arrays. (4)
4 Explain subroutine prologue and epilogue. (4)
5 Evaluate the following Scheme expressions. (4)
i. (let ((x -2) (y 3))
(* x y))
ii. (let ((x (+ -1 -6) (y 2))
(+x y))
6 Explain headless Horn clauses with example. (4)
7 Explain Class and Object in Object oriented programming. (4)
8 Write short notes on composite data types used in scripting languages. (4)
9 Explain how a pair of threads communicate with each other. (4)
10 Explain how Semaphores are used to achieve synchronization. (4)
PART B
Answer any two full questions, each carries 9 marks.
11 a) Explain Dangling Pointer. With an example explain how a name-to-object (4)
binding can create a dangling pointer.
b) Explain the various Selection statements with examples. (5)
12 a) Consider a three dimensional array of integers (32 bit) with the following (5)
bounds.
A: array [0..5] of array [0..3] of array [0..2]
Calculate the address offset of A[1,1,1]
Page 10/3