PREVIOUS YEAR QUESTION PAPER

CS6302 – Programming Paradigms

Anna University

Regulation 2018 Semester 5 2023

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 2023
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.

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

Part-wise extracted questions

Part A10
Part B12
Part C2

Question type candidates

Definition9
Other Or Unclassified6
Explanation4
Comparison2
Diagram1
Derivation1
Numerical1

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

Which user communities are major stake in programming language landscape? C O l L I

Other Or Unclassified
Part A — 2

What is lexical scoping? Give examples C G I L I

Definition
Part A — 3

Define assertion. Give its syntax. C O l L1,L3

Definition

Source quality review required

Part A — 4

Define state transformation. How it is represented mathematically? C O l L1,L3

Definition

Source quality review required

Part A — 5

What are the five principal ways to pass an argument to a function? C O l L1,L2

Definition

Source quality review required

Part A — 6

Draw the structure of Run-Time memory. C O l L I

Diagram
Part A — 7

What are some features that are lacking in the C programming language? C02 L4

Definition

Source quality review required

Part A — 8

Which mechanism can be used to identify the type or class of an object at C O l L4 runtime?

Other Or Unclassified

Source quality review required

Part A — 9

What is the significance of recursion in functional programming paradigm? C O l L1,L4

Definition

Source quality review required

Part A — 10

What are the two powerful principles of prolog? Give some applications of logic COS L I programming.

Definition
Part B — 11

Discuss about the major language design constraints and design goals for COl L I language designers.

Explanation
Part B — 12

Differentiate between structural equivalence and name equivalence with COl L1,L2 examples and discuss how it can used for types in languages like c, Ada and Java

Comparison

Source quality review required

Part B — 13

Consider the following program: var X : int = 0; vary : int = 1; C01,C02 L1,L3,L4 procedure M(x : int) begin vary : int = 42; V *— 1 • X .- 1, call N(x); end procedure N(x : int) begin var z : int = 2; if true begin var z : int = 42; end print x; print y; print z; end procedure Main() begin call M(x); end What does the above program will print if the language uses static and dynamic scoping? Draw symbol table and explain.

Other Or Unclassified

Source quality review required

Part B — 14

Describe the assignment semantics with suitable examples. C O l L1,L2

Explanation

Source quality review required

Part B — 15

Derive the meaning of the following elite expression in a given state using C O l L2,L3 Denotational semantic rules. Z=x+2*y, state= {<x,2>,<y,-3>,<z,75>}

Derivation

Source quality review required

Part B — 16

Which garbage collection algorithm makes two passes on the heap to remove C O l L2,L4 garbages? Discuss in detail with a neat diagram.

Other Or Unclassified

Source quality review required

Part B — 17

Consider the following program: C01,C02 L2,L3,L4 Program sample var x:int; Procedure P(y:int) begin y=y+l; y=y*x; end begin A . — Z . ^ P(x); print(x); end What is the value of x for each of the following parameter passing mechanism? Ju'Sfify your answers. (a) Argument X is passed by value. (b) Argument x is passed by reference. (c) Argument x is passed by value-result

Other Or Unclassified

Source quality review required

Part B — 18

Describe the common features of Imperative programming paradigm. C02 L1,L2

Explanation

Source quality review required

Part B — 19

What is the significance of multiple inheritance ? what kind of complication can C O l L4,L3 occur while implementing it in languages like C++ and Java ? illustrate how it is handled in such languages.

Definition

Source quality review required

Part B — 20

Evaluate the following scheme expressions with a given even list definition: (define evens '(0 24 68)) (car evens) (cdr evens) (car (cdr evens)) COl L2,L3 (cadr evens) (cdr (cdr evens)) (cddr evens) ( c a r ' ( 6 8 ) ) (car (cons 6 8))

Numerical

Source quality review required

Part B — 21

What is the importance of synchronization in concurrent programming C04 L1,L5 paradigm? & Discuss the synchronization strategies that support concurrency in programming languages.

Definition

Source quality review required

Part B — 22

Explain the event driven architecture and the kind of events to be handled for C04 L2,L3 the ATM machine

Explanation

Source quality review required

Part C — 23

Differentiate between resumption and termination in exception handling. Write COl L1,L4 a detailed comparison of the exception -handling capabilities of C++ and Java. COl L I

Comparison

Source quality review required

Part C — 24

Specify the validity rule for an Expression in Clite type system.

Other Or Unclassified

Advanced Examination Analysis

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