PREVIOUS YEAR QUESTION PAPER

CS6302 – PROGRAMMING PARADIGMS

Anna University

Regulation 2018 Semester 5 2024

Question Paper Details

University Anna University
Degree B.E. Computer Science and Engineering
Department Computer Science and Engineering
Regulation Regulation 2018
Semester 5
Subject Code CS6302
Subject Name PROGRAMMING PARADIGMS
Exam Session November / December 2024
Duration 3 Hours
Maximum Marks 100

View Question Paper PDF

Access the previous year question paper for your examination preparation.

View / Download PDF

How to Use This Question Paper

More Question Papers

Browse other previous year question papers for this subject.

View All Subject Question Papers

Question Paper Intelligence

Automatically extracted historical question data. Academic accuracy and examination rules require verification.

13Extracted entries
100Maximum marks (metadata)
180Duration (minutes)
0Choice candidates

Part-wise extracted questions

Part A3
Part B9
Part C1

Question type candidates

Other Or Unclassified12
Definition1

Section marks — arithmetic candidates

Part A20 marks
Part B64 marks
Part C16 marks

Examination marks pattern

PartRequired answersMarks per answerSection total
A10220
B8864
C2816

Estimated time allocation

Proportional to section marks. This estimate uses the full exam duration without a separate reading or revision reserve.

Section time budget

Part A36.0 min
Part B115.2 min
Part C28.8 min

Question navigator

Extracted questions

Part A — 1

2 COl LI language design? What is 'type error'? How it can be resolved In language 2. 2 001 L2 design? Comment on copy vs reference semantics of assignment 3. 2 001 L1 statements.

Other Or Unclassified

Source quality review required

Part A — 4

Give an' example of an expression in G, with side effects. 2 C02 L2

Other Or Unclassified

Source quality review required

Part A — 5

What is a 'partial function'? Give example. . 2 C02 L2 Illustrate the concept of implementation of dynamic arrays, 6. 2 C02 L1 using runtime stack and heap. Mention the potential problem that occurs in the call fo scanf 7. 2 002 L2 . function in.C. . •. . Why the semantics definition becomes complicated for 8. 2 001 L2 multiple inheritance? 9. What are 'eager' and 'lazy' evaluation mechanisms? 2 004 L1 Give expansions for the following: ALGOL, FORTRAN, LISP, 10. 2 002 LI PHP.

Definition

Source quality review required

Part B — 11

programs using compilation and interpretation techniques? 8 001 L2 Explain with examples. What are the design issues for exception handling? Discuss

Other Or Unclassified

Source quality review required

Part B — 12

how exceptions are handled in any popular language of your 8 002 L I choice. i) Present the necessary formalism for checking the validity of 4

Other Or Unclassified

Source quality review required

Part B — 13

a typical 'function' in C-lite. 002 L2 4 ..ii)Consider the following.C-iike program:. . . .„ ********************************************************************************************************** ^ ^ ^ ^ intint a;a; procedureprocedure foo(intfoo(int x){x){ xx == x+10;x+10; aa == aa ++ x;}x;} procedureprocedure fie(){fie(){ aaa ==— '^•'^•o, foo{a); print (a);} Wtiat is tine output of the above program for each of the following parameter passing mechanisms? a) Argument a is passed by value b) Argument a is passed by Reference c) Argunient a is passed by Value-Result . Present the structure of an 'Activation Record'. Demonstrate

Other Or Unclassified

Source quality review required

Part B — 14

the semantics of function call and return using run-time stack, 8 001 LI for any simple recursive function of your choice. Show all steps in the derivation of the meaning of the following assignment statement when executed in the given state, using 15. 8 001 L2 •the denotational sematic rule. M(x=2*x+3/v-4,(<x,6>,<y,-12>,<Z,75>}) Describe the General features of 'Imperative programming 16. 8 002 LI paradigm'. Present the detailed steps of any popular 'Garbage Collection'

Other Or Unclassified

Source quality review required

Part B — 17

algorithm of your choice and critically analyze its pros and 8 002 LI cons. i) Mentionthe common characteristics of'scripting languages'. ii) Present the distinctive features of any popular scripting 4

Other Or Unclassified

Source quality review required

Part B — 18

language of your choice and contrast those features in temis 003, L2 4 of 'numeric,types', 'arrays', 'scoping' with that of any popular compiled language. Discuss about the significance of 'abstract' class in object-

Other Or Unclassified

Source quality review required

Part B — 19

oriented programming, and how does it differ from an 8 002 LI 'interface'. What are the unique features of 'functional programming'? Demonstrate using ahy functional"programming laih&uage of 20. 8 . 004 L2 , your choice the list data structure usage, by defining a function that accepts an unordered list and returns some ordered list. Write short notes on two popular strategies for supporting

Other Or Unclassified

Source quality review required

Part B — 21

8 003 L2 'synchronization' and cqmpare their pros' and cons. What are the differentiating features of 'Event Driven programming' in comparison with 'imperative paradigm'?

Other Or Unclassified

Source quality review required

Part B — 22

Present a detailed discussion on how Event handling is 8 004 L1 implemented in any popular language of your choice choosing any simple example of your choice.

Other Or Unclassified

Source quality review required

Part C — 23

provide illustrations wherever necessary: 8 004 L3 cousin (Wfio, Jeff). mother(mary, sue). mother(mary, bill). mother(sue, nancy). mother(sue, jeff). motherGane, ron). fatherGohn, sue). fatherOohn, bill). father(bob, nancy). father(bob, jeff). father(bill, ron). • parent{A,B) :-father(A,B). parent(A,B) :- mother(A,B). grandparent(C,D):- parent(C,E), parent(E,D). sibling(U,V):- parent(P,U), parent(P,V); U\=V.. ' cousin(X,Y):- parent(U,X), parent(V,Y), sibling(U,V), X\=Y. *************************************************** Consider the following G-like program. What does the program print if the language uses static and dynamic scoping? Draw symbol table and explain, *********************************************************** Program A^) { x, y, z: integer; procedure B() { y: integer; .y=0; . x=z+1; z=y+2; } procedure C() { z:. integer;24. 8 001 L3 procedure D() { x: integer; x = z+ 1; y = x+ 1; call B(); .. ,} . z = 5; • callDO; } x= 10; y = i i ; z= 12; caiiCO; print X, y, z;} ************************************************************************ 3

Other Or Unclassified

Source quality review required

Advanced Examination Analysis

Historical analysis based on extracted question papers. Topic classifications, marks and planning estimates are provisional.