Question Bank (OOSD)
Question Bank (OOSD)
TECH (CSE)
SEMESTER / YEAR: 5TH /3RD
SUBJECT NAME (SUBJECT CODE): OOSD WITH C++
(BCS-054)
Q.1.
UNIT-I
a) Define Object identify with example. CO2
UNIT-II
a) What is classes Diagram? CO1
UNIT-III
a) Define Physical packaging. CO2
UNIT-IV
a) What is Program structure ? CO1
UNIT-V
a) Define syntax of class and object . CO3
b) Define Destructor. CO3
SECTION-B & C
Note: 10 questions from each unit as per 10 marks or 5 marks.
Q.2.
UNIT-I
a) Why Object-Oriented Programming (OOP) is so important for software industries or in real life? CO5
Explain with example. Discuss the pros and cons of object-oriented technology with suitable
example.
c) What is UML? List all building blocks of UML. Explain all types of things used in UML . CO4
e) What do you understand by a static member function of a class? Discuss their characteristics Give CO5
an example where you can justify the use of static member functions.
f) What is UML? Mention the different kinds of modeling diagrams used. Explain use case with CO4
example.
g) What is Data Abstraction? How it is different from encapsulation? Explain with proper example. CO4
UNIT-II
a) What is class diagram? Draw a class diagram for e-commerce website. CO3
b) Give the conceptual model of UML. Use some example to illustrate the model in detail using CO4
diagram.
e) What is use case driven OOA? How is it different from OOD? Explain OOA process with the help CO5
of a diagram in the unified approach.
f) List the properties of a state chart diagram. Draw a state chart for a coin vending machine present CO4
at a railway station.
g) Prepare a DFD for computing the volume and surface area of a cone. Inputs are height and the CO5
radius of the base of the cone. Outputs are volume and surface area. Discuss some ways of
specifying operations
j) What is use case ? explain about Use Case Diagram with suitable example . CO4
UNIT-III
a) Describe object oriented design and object design. CO3
d) Discuss the term Link and Association by taking suitable example. Also, define multiplicity. CO4
e) Explain object oriented programming. What are the main advantages of object CO5
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.
f) What do we mean by a collaboration diagram? Explain various terms and symbols used in a CO5
collaboration diagram. How is polymorphism described using a collaboration diagram? Explain
using an example.
g) Differentiate: SA/SD and OMT CO3
h) Differentiate: SA/SD and JSD CO3
i) What is the relationship and differences between OOA (Object oriented analysis) and OOD. CO5
j) Explain about combining tree models . CO3
UNIT-IV
a) Differentiate overloading and overriding. Write a program to overload "+" operator using friend CO5
function to concatenate two strings.
b) What is operator overloading? Differentiate between overloading of binary operator using friend CO5
function and without using friend function.
f) What is an inline function? Why do we use inline functions in our program? CO3
Write aprogram in C++ for inline function.
g) Write a Program call by value and call by reference. CO3
h) Write a program swap two no’s with help of function. CO4
UNIT-V
a) Define Class and object with any example. CO3
d) What is an inheritance? Explain the different types of it .Write a program in C++ for multiple CO4
inheritance
e) What is polymorphism? Differentiate between runtime polymorphism and compile time polymorphism CO3
f) What is operator overloading? Write a program in C++ for binary operator overloading. CO4
g) Write a Program add two complex no’s in C++ with help Class . CO5
h) What is Pointer in C++? Define const pointers. What is the usage of the pointer in C++? What is CO4
the size of a void pointer in C? Demonstrate it.
i) Describe about constructor and explain its type with suitable example. CO3
j) Define polymorphism . differentiate run time polymorphism and compile time CO4
polymorphism.