[go: up one dir, main page]

100% found this document useful (1 vote)
1K views12 pages

AKTU OOPS Previous Year Questions

PYQs

Uploaded by

harshdub22
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
1K views12 pages

AKTU OOPS Previous Year Questions

PYQs

Uploaded by

harshdub22
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

Printed Pages: 02 Sub Code:KOE-064

Paper Id: 236485 Roll No.

B.TECH.
(SEM VI) THEORY EXAMINATION 2022-23
OBJECT ORIENTED PROGRAMMING
Time: 3 Hours Total Marks: 100
Note: 1. Attempt all Sections. If require any missing data; then choose suitably.

SECTION A

1. Attempt all questions in brief. 2 x 10 = 20

a. Differentiate between Object and Class.


b. Describe the difference between Abstract Classes and Interfaces.
c. List down the different types of Relationships in Class diagrams.
d. Explain the terms Association, Aggregation, and Composition relationships.
e. List down the different phases of Object-Oriented Analysis.
f. Differentiate between Procedural and Object-Oriented language features.
g. What is the namespace in C++? Explain its significance.
90

2
h. Describe the concept of typecasting in C++.

13
_2
i. Discuss operator overloading in C++.

2.
P1

j. Differentiate between private and public members of a class in C++.

24
3E

5.
.5
SECTION B
P2

2. Attempt any three of the following: 17 10x3=30


Q

|1
a. Explain different types of diagrams in UML along with example of each.
0

b. Explain the different modelling techniques used in Class/Object diagrams.


:2
52

c. Define Abstraction and Encapsulation and explain their significance in Object-


Oriented Programming.
:
08

d. Explain the difference between call by value and call by reference in C++, with the
3

help of suitable example.


02

e. Explain the concept of constructors in C++. Discuss different types of constructors.


-2

Give example of each.


06

SECTION C
7-
|1

3. Attempt any one part of the following: 10x1=10

a. Explain Object-Oriented Modelling, and Differentiate it with modelling techniques.


Explain your answer with proper reasoning.
b. Define Polymorphism and give an example of its implementation in object-oriented
Programming.

QP23EP1_290 | 17-06-2023 08:52:20 | 117.55.242.132


4. Attempt any one part of the following: 10x1=10
a. Explain the reason of Polymorphism being depicted in collaboration diagrams.

b. Discuss the callback mechanism, and its representation in sequence diagrams?

5. Attempt any one part of the following: 10x1=10

a. Explain the advantages and disadvantages of SA/SD and JSD in comparison to


Object-Oriented Analysis and Design?
b. Explain the process of combining three Models (Class, Use Case, and Interaction) in
to object-oriented analysis and design.

6. Attempt any one part of the following: 10x1=10

a. Discuss an inline function in C++. Explain its significance along with example.

b. Explain the difference between static and virtual functions in C++ with the help of
example.

7. Attempt any one part of the following: 10x1=10


90

2
13
a. Illustrate the types of inheritance in C++. Give an example of each.
_2

2.
P1

b. Explain pure virtual function in C++.Explain its usefulness with an example.

24
3E

5.
.5
P2

17
Q

|1
0
:2
: 52
08
3
02
-2
06
7-
|1

QP23EP1_290 | 17-06-2023 08:52:20 | 117.55.242.132


Printed Page: 1 of 2
Subject Code: KCS054
0Roll No: 0 0 0 0 0 0 0 0 0 0 0 0 0

B. TECH.
(SEM V) THEORY EXAMINATION 2020-21
OBJECT-ORIENTED SYSTEM DESIGN
Time: 3 Hours Total Marks: 100
Note: 1. Attempt all Sections. If require any missing data; then choose suitably.
SECTION A
1. Attempt all questions in brief. 2 x 10 = 20
Q no. Question Marks CO
a. Define Object identify with example. 2 CO1
b. List the features of Object-oriented paradigms. 2 CO1
c. Define and Differentiate Link and Association with example. 2 CO2
d. Define and Differentiate Generalization and Inheritance with example. 2 CO2
e. How it is different from multiple inheritance and modelled by using 2 CO3
nested generalization?
f. Define and differentiate Procedural and OOP with example. 2 CO3
g. Write a program to demonstrate the all the keywords used in Exception 2 CO4
Handling.
h. Define friend functions with example. 2 CO4
i. Define and differentiate virtual and pure virtual functions with example. 2 CO5
j. Define constructor and destructor with example. 2 CO5
SECTION B
2. Attempt any three of the following: 3 x 10 = 30
Q no. Question Marks CO
a. What do you understand by Object-Oriented Technology? Discuss the 10 CO1
pros and cons of object-oriented technology with suitable example.
b. What is Data Abstraction? How it is different from encapsulation? 10 CO2
Explain with proper example.
c. Prepare a DFD for computing the volume and surface area of a cone. 10 CO3
Inputs are height and the radius of the base of the cone. Outputs are
volume and surface area. Discuss some ways of specifying operations.
d. Discuss the term Link and Association by taking suitable example. Also, 10 CO4
define multiplicity.
e. What is Late Binding & Early Binding? Which technique is used to 10 CO5
implement Early and Late binding in Polymorphism? Explain in brief
with example.
SECTION C
3. Attempt any one part of the following:
Q no. Question Marks CO
a. What do you understand by a static member function of a class? Discuss 10 CO1
their characteristics Give an example where you can justify the use of
static member functions.
b. Why Object-Oriented Programming (OOP) is so important for software 10 CO
industries or in real life? Explain with example. Discuss the pros and
cons of object-oriented technology with suitable example.
4. Attempt any one part of the following:
Q no. Question Marks CO
a. What is use case driven OOA? How is it different from OOD? Explain 10 CO
OOA process with the help of a diagram in the unified approach.
b. List the properties of a state chart diagram. Draw a state chart for a coin 10 CO
vending machine present at a railway station.

1|Page
Printed Page: 2 of 2
Subject Code: KCS054
0Roll No: 0 0 0 0 0 0 0 0 0 0 0 0 0

5. Attempt any one part of the following:


Q no. Question Marks CO
a. Differentiate: 10 CO
i. SA/SD and OMT
ii. SA/SD and JSD
b. What do we mean by a collaboration diagram? Explain various terms 10 CO
and symbols used in a collaboration diagram. How is polymorphism
described using a collaboration diagram? Explain using an example.
6. Attempt any one part of the following:
Q no. Question Marks CO
a. What is operator overloading? Differentiate between overloading of 10 CO4
binary operator using friend function and without using friend function.
b. Differentiate overloading and overriding. Write a program to overload 10 CO4
"+" operator using friend function to concatenate two strings.
7. Attempt any one part of the following:
Q no. Question Marks CO
a. What does the inheritance mean in C++? What is containership? How 10 CO5
does it differ from inheritance? Explain. Write a program to demonstrate
how ambiguity is avoided in a single inheritance using scope resolution
operators.
b. What is Pointer in C++? Define const pointers. What is the usage of the 10 CO5
pointer in C++? What is the size of a void pointer in C? Demonstrate it.

2|Page
Printed Pages:02 Sub Code:KCS054

Paper Id: 231659 Roll No.

B.TECH.
(SEM V) THEORY EXAMINATION 2022-23
OBJECT ORIENTED SYSTEM DESIGN
Time: 3 Hours Total Marks: 100
Note: Attempt all Sections. If you require any missing data, then choose suitably.

SECTION A

1. Attempt all questions in brief. 2x10 = 20


(a) Define data encapsulation. Give example.
(b) Define generosity.
(c) List the features of Component Diagram.
(d) Explain the existence of swimlanes in activity diagram.
(e) List the features of object oriented language.
(f) Describe the term enum.
(g) Define friend function with example.
(h) Explain the use of typecasting?

2
90
(i) Explain this pointer.

13
(j) Give a brief description about function overriding.
_2

2.
P1

24
SECTION B

5.
3D

2. Attempt any three of the following: 10x3 = 30

.5
P2

(a) Explain the architecture of UML.


17
Q

(b) Discuss the purpose of UseCase Diagram and explain its different notations.
|1
(c) Discuss the following:
(i) Robustness,
7
:3

(ii) Extensibility,
(iii) Reusability.
27

Discuss with respect to object-oriented system design.


:
13

(d) Explain the difference between Macro and Inline function.


(e) Give a brief description about constructor with the reference of a C++
3

program. Also explain its different types.


02
-2

SECTION C
01

3. Attempt any one part of the following: 10x1 = 10


6-

(a) Explain the principles and importance of modelling.


|1

(b) Discuss the conceptual model of UML in detail.

4. Attempt any one part of the following: 10 x1 = 10


(a) Demonstrate the different relationships used in class diagram with their
notations with the help of a neat class diagram.
(b) Illustrate the significance of collaboration diagram and also draw a neat
collaboration diagram for reserving a room in a hotel from its website.

QP23DP1_290 | 16-01-2023 13:27:37 | 117.55.242.132


5. Attempt any one part of the following: 10x1 = 10
(a) Discuss in detail about JSD and SA/SD.
(b) Compare Object Oriented Programming and Procedural programming.

6. Attempt any one part of the following: 10x1 = 10


(a) Discuss virtual function. How it is different from pure virtual function? Write a
program in C++ for it.
(b) Explain the following briefly:
(i) Virtual function
(ii) Friend function
(iii) Inline function

7. Attempt any one part of the following: 10x1 = 10


(a) Explain polymorphism. Devise its implementation in C++.
(b) Construct a C++ program depicting the concept of multiple inheritance.

2
90

13
_2

2.
P1

24
5.
3D

.5
P2

17
Q

|1
7
:3
: 27
13
3
02
-2
01
6-
|1

QP23DP1_290 | 16-01-2023 13:27:37 | 117.55.242.132


Printed Page: 1 of 2
Subject Code: KCS054
0Roll No: 0 0 0 0 0 0 0 0 0 0 0 0 0

B.TECH
(SEM V) THEORY EXAMINATION 2021-22
OBJECT ORIENTED SYSTEM DESIGN

Time: 3 Hours Total Marks: 100


Note: 1. Attempt all Sections. If require any missing data; then choose suitably.

SECTION-A
1. Attempt all questions in brief. 2X10=20
a. Differentiate between link and association.
b. What is an abstract class? Is it possible that an abstract class is inherited by another class?
c. Draw a state diagram for electric bulb.
d. When do we use the protected visibility specifier to a class member?
e. When will you make a function inline? Why?
f. Define Destructor. Why do we use a destructor in a program?
g. What is the use of Scope resolution operator?
h. What is a Candidate key?
i. What is the use of friend function in C++?
j. What is information hiding?

SECTION –B
2. Attempt any three parts of the following: 10X3=30
a. What is a Constructor? Write down the different characteristics of a constructor. Write a
program in C++ for constructor overloading .
b. What is an inline function? Why do we use inline functions in our program? Write a
program in C++ for inline function.
c. Explain object oriented programming. What are the main advantages of object oriented
programming over procedural programming? Write a program in C++ by creating a class
integer and write a function that prints all the prime numbers from the class.
d. Explain all basic concepts of object oriented programming
e. What is an inheritance? Explain the different types of it .Write a program in C++ for
multiple inheritance.

SECTION-C
3. Attempt any one part of the following: 10X1=10
(a) What is polymorphism? Differentiate between runtime polymorphism and compile time
polymorphism.
(b) What is operator overloading? Write a program in C++ for binary operator overloading.

4. Attempt any one part of the following: 10X1=10


(a) A farmer wants to cross the river in a boat along with a bag of grass, a goat and a lion. Only one
things can be carried in the boat at a time. If the goat is left alone with the grass the grass will be
eaten. If the goat is left along with the lion, the goat will be eaten.
(i) Prepare a scenario in which everything is safely transported across the river.
(ii) Prepare the event trace diagram for the above problem.
(b) Define the term multiplicity and quantification with suitable examples.
Printed Page: 2 of 2
Subject Code: KCS054
0Roll No: 0 0 0 0 0 0 0 0 0 0 0 0 0

5. Attempt any one part of the following: 10X1=10


(a) What is UML? List all building blocks of UML. Explain all types of things used in UML .
(b) Explain virtual base class with the help of an example.

6. Attempt any one part of the following: 10X1=10


(a) Discuss implicit and explicit type conversion in detail.
(b) Explain generalization, aggregation and association in detail.

7. Attempt any one part of the following: 10X1=10


(a) What is friend function in C++? Write a program in C++ to implement friend function.
(b) Explain the following concepts in C++ by taking a suitable example:
(i) This pointer
(ii) Array of objects
Printed Page: 1 of 2
Subject Code: KOE064
0Roll No: 0 0 0 0 0 0 0 0 0 0 0 0 0

BTECH
(SEM VI) THEORY EXAMINATION 2021-22
OBJECT ORIENTED PROGRAMMING

Time: 3 Hours Total Marks: 100


Note: Attempt all Sections. If you require any missing data, then choose suitably.

SECTION A

1. Attempt all questions in brief. 2*10 = 20


Q.no Questions Marks CO
(a) Define Object Oriented Programming. 2 1
(b) Briefly define Encapsulation. 2 1
(c) Define Classes under the Basic Structural Modeling. 2 2
(d) Discuss about the Object Diagrams. 2 2
(e) Briefly discuss about the Object Oriented Analysis. 2 3
(f) What do you mean by Physical packaging? 2 3
(g) What is the use of Scope resolution operator? 2 4
(h) Define identifiers. 2 4
(i) What do you understand by the Private and public members. 2 5
(j) Discuss constructors and their types. 2 5

SECTION B

2. Attempt any three of the following: 10*3 = 30


Q.no Questions Marks CO
(a) Explain in detail about the concept, its typesand application
10 of 5
Inheritance.
(b) Write short notes on the following: 10 2
(i) C++ streams
(ii) Class Templates
(c) Differentiate between Object Oriented Programming and Procedural 10 3
Programming? Write a program in C++ by creating a class of integers
and write a function that prints all the Prime numbers from the class.
(d) Describe events and states. How is a state diagram prepared? Explain 10 4
by suitable examples.
(e) Define UML. Draw a UML diagram for the automation of training and 10 1
placement office of any college. Make suitable assumptions if required
and explain them clearly.

SECTION C
3. Attempt any one part of the following: 10*1 = 10
Q.no Questions Marks CO
(a) What is Operator overloading? Discuss with the help of an example. 10 5
(b) Explain about the Jackson Structured Development (JSD) in Object 10 2
Oriented Analysis.
Printed Page: 2 of 2
Subject Code: KOE064
0Roll No: 0 0 0 0 0 0 0 0 0 0 0 0 0

BTECH
(SEM VI) THEORY EXAMINATION 2021-22
OBJECT ORIENTED PROGRAMMING

4. Attempt any one part of the following: 10 *1 = 10


Q.no Questions Marks CO
(a) Discuss about theObject identity and Information hiding under 10 the 1
Object Oriented Programming.
(b) Discuss about theconcept of Passing arguments to methods using a 10 3
suitable example.

5. Attempt any one part of the following: 10*1 = 10


Q.no Questions Marks CO
(a) What do you mean by Exceptions? Explain with suitable examples. 10 4
(b) Explain in detail about the concept, types and application 10 of5
Polymorphism.

6. Attempt any one part of the following: 10*1 = 10


Q.no Questions Marks CO
(a) Describe the concept of Use cases, Use case Diagrams and Activity 10 2
Diagrams in Basic Structural Modeling.
(b) What is the difference between link and association? Draw an object 10 1
diagram to explain.

7. Attempt any one part of the following: 10*1 = 10


Q.no Questions Marks CO
(a) Briefly discuss thefollowing. 10 3
(i) Reusability
(ii) Extensibility
(ii) Robustness
(iv) Abstraction
(b) Write a program in C++ to differentiate between function overloading 10 4
and function overriding.

You might also like