Oosdpyq

Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

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

P
j. Define constructor and destructor with example. 0Q 2 CO5
SECTION B

1
13
2. Attempt any three of the following: 3 x 10 = 30
29

Q no. Question Marks CO

2.
0E

a. What do you understand by Object-Oriented Technology? Discuss the 10 CO1

24
P2

pros and cons of object-oriented technology with suitable example.

5.
b. What is Data Abstraction? How it is different from encapsulation? 10 CO2
_Q

.5
Explain with proper example. 17
c. Prepare a DFD for computing the volume and surface area of a cone. 10 CO3
TU

Inputs are height and the radius of the base of the cone. Outputs are
|1
AK

volume and surface area. Discuss some ways of specifying operations.


3

d. Discuss the term Link and Association by taking suitable example. Also, 10 CO4
:5

define multiplicity.
13

e. What is Late Binding & Early Binding? Which technique is used to 10 CO5
:

implement Early and Late binding in Polymorphism? Explain in brief


09

with example.
SECTION C
1
02

3. Attempt any one part of the following:


Q no. Question Marks CO
-2

a. What do you understand by a static member function of a class? Discuss 10 CO1


ar

their characteristics Give an example where you can justify the use of
M

static member functions.


3-

b. Why Object-Oriented Programming (OOP) is so important for software 10 CO


|0

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
AKTU_QP20E290QP | 03-Mar-2021 09:13:53 | 117.55.242.131
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

P
how ambiguity is avoided in a single inheritance using scope resolution
0Q
operators.

1
13
b. What is Pointer in C++? Define const pointers. What is the usage of the 10 CO5
29

pointer in C++? What is the size of a void pointer in C? Demonstrate it.

2.
0E

24
P2

5.
_Q

.5
17
TU

|1
AK

3
:5
13
:
09
1
02
-2
ar
M
3-
|0

2|Page
AKTU_QP20E290QP | 03-Mar-2021 09:13:53 | 117.55.242.131
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?

1
SECTION –B
90

13
2. Attempt any three parts of the following: 10X3=30
_2

a. What is a Constructor? Write down the different characteristics of a constructor. Write a

2.
program in C++ for constructor overloading .
1P

24
b. What is an inline function? Why do we use inline functions in our program? Write a
program in C++ for inline function.
2O

5.
c. Explain object oriented programming. What are the main advantages of object oriented

.5
P2

programming over procedural programming? Write a program in C++ by creating a class


17
integer and write a function that prints all the prime numbers from the class.
Q

d. Explain all basic concepts of object oriented programming


|1

e. What is an inheritance? Explain the different types of it .Write a program in C++ for
multiple inheritance.
14
4:
:2

SECTION-C
3. Attempt any one part of the following: 10X1=10
09

(a) What is polymorphism? Differentiate between runtime polymorphism and compile time
polymorphism.
2
02

(b) What is operator overloading? Write a program in C++ for binary operator overloading.
n -2

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


Ja

(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
5-

eaten. If the goat is left along with the lion, the goat will be eaten.
|0

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

QP22O1P_290 | 05-Jan-2022 09:24:14 | 117.55.242.131


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

1
90

13
_2

2.
1P

24
2O

5.
.5
P2

17
Q

|1
14
4:
:2
09
2
02
n -2
Ja
5-
|0

QP22O1P_290 | 05-Jan-2022 09:24:14 | 117.55.242.131


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

You might also like