Which user communities are major stake in programming language landscape? C O l L I
Other Or UnclassifiedCS6302 – Programming Paradigms
Anna University
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 PDFHow to Use This Question Paper
- Understand the examination pattern.
- Practise questions within the allotted time.
- Identify topics that require further revision.
- Compare with other previous year papers.
More Question Papers
Browse other previous year question papers for this subject.
View All Subject Question PapersQuestion Paper Intelligence
Automatically extracted historical question data. Academic accuracy and examination rules require verification.
Part-wise extracted questions
Question type candidates
Section marks — arithmetic candidates
Examination marks pattern
| Part | Required answers | Marks per answer | Section total |
|---|---|---|---|
| A | 10 | 2 | 20 |
| B | 8 | 8 | 64 |
| C | 2 | 8 | 16 |
Estimated time allocation
Proportional to section marks. This estimate uses the full exam duration without a separate reading or revision reserve.
Section time budget
Question navigator
Extracted questions
What is lexical scoping? Give examples C G I L I
DefinitionDefine assertion. Give its syntax. C O l L1,L3
DefinitionSource quality review required
Define state transformation. How it is represented mathematically? C O l L1,L3
DefinitionSource quality review required
What are the five principal ways to pass an argument to a function? C O l L1,L2
DefinitionSource quality review required
Draw the structure of Run-Time memory. C O l L I
DiagramWhat are some features that are lacking in the C programming language? C02 L4
DefinitionSource quality review required
Which mechanism can be used to identify the type or class of an object at C O l L4 runtime?
Other Or UnclassifiedSource quality review required
What is the significance of recursion in functional programming paradigm? C O l L1,L4
DefinitionSource quality review required
What are the two powerful principles of prolog? Give some applications of logic COS L I programming.
DefinitionDiscuss about the major language design constraints and design goals for COl L I language designers.
ExplanationDifferentiate 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
ComparisonSource quality review required
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 UnclassifiedSource quality review required
Describe the assignment semantics with suitable examples. C O l L1,L2
ExplanationSource quality review required
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>}
DerivationSource quality review required
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 UnclassifiedSource quality review required
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 UnclassifiedSource quality review required
Describe the common features of Imperative programming paradigm. C02 L1,L2
ExplanationSource quality review required
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.
DefinitionSource quality review required
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))
NumericalSource quality review required
What is the importance of synchronization in concurrent programming C04 L1,L5 paradigm? & Discuss the synchronization strategies that support concurrency in programming languages.
DefinitionSource quality review required
Explain the event driven architecture and the kind of events to be handled for C04 L2,L3 the ATM machine
ExplanationSource quality review required
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
ComparisonSource quality review required
Specify the validity rule for an Expression in Clite type system.
Other Or UnclassifiedAdvanced Examination Analysis
Historical analysis based on extracted question papers. Topic classifications, marks and planning estimates are provisional.