OOPs With C++
OOPs With C++
OOPs With C++
COURSE RECORD
Faculty Name:
Semester: 2nd
3. Academic Calendar
6. Course Syllabus
7. CO-PO Mapping
20. Attendance
21. Analysis
22. Feedback
Mission:
M1: Promote intellectual and skilled human capital generating employment
and entrepreneurship.
M2: Be educational centre of excellence of multi ethnicity and diversity.
M3: Establish as technology driven teaching learning institution.
M4: Provide world class platform for research and innovation.
M5: Inculcate social, environmental, heritage values
Mission:
DM1: Induce ethical values and spirit of social commitment.
DM2: Provide a learning ambience to enhance innovations and problem solving
skills.
DM3: To provide a comprehensive education, benchmarked against the highest
global standards.
DM4: Collaborate with software industry and adopting technology for achieving
quality of technical education.
DM5: Promote research based projects / activities in the emerging areas of
technology convergence.
Mapping of Mission
IM1 IM2 IM3 IM4 IM5
DM1 Y Y
DM2 Y
DM3 Y Y
DM4 Y Y Y
DM5 Y
PEO1 Evolve as globally competent computer professionals possessing leadership skills for
Programme Outcomes
PO1: Take Thinking: Take informed action after identifying the assumptions that frame
our thinking and action, checking out the degree to which these assumptions are accurate and
valid, and looking at our ideas and decisions (intellectual, organizational, and personals) from
different perspectives.
PO2: Effective Communication: Speak, read, write and listen clearly in person and
thought electronics media in English and in one Indian Language, and make meaning of the
world by connecting people, ideas, book, media and technology.
PO3: Social Interaction: Elicit views of others, mediate disagreements and help reach
conclusion in group settings.
PO4: Effective Citizenship: Demonstrate empathetic social concern and equity national
development, and the ability to act with an informed awareness of issues and participate in
civic life through volunteering.
PO5: Ethics: Recognize different values system including your own, understand the moral
dimension of your decisions, and accept responsibility for them,
Course Outcomes:
COURSE SYLLABUS
Unit – I 12 hours
Text books:
1. Rambaugh James etal, “Object Oriented Design and Modeling”, PHI-1997
2. Balagurusamy E, “Object Oriented Programming with C++”, TMH, 2001
CO PO MAPPING
PO1 PO2 PO3 PO4 PO5 PO6 PO7 PO8 PO9 PO10 PO1 PO12 PSO1 PSO2
1
CO 2 2 3 - 2 1 1 1 2 2 2 2 1 2
1- LOW
2-MODERATE
3-HIGH
Signature of HOD…………………
4. L4 Aggregation
5. T1 Tutorial
6. L5 Abstract classes
8. L7 Multiple Inheritance
9. L8 Meta data
15. T2 Tutorial
16. L14 Specifying Operations
39. T4 Tutorial
Strike Rate
Module Planned Hours Actual Hours (Planned Hours/Actual
Hours)
L 12
1
T 1
2 L 9
T 1
3 L 10
T 1
4 L 15
T 1
5 L 6
T 0
L 52
Total
T 4
UNIT-2[CO2]
Q1. Write a C++program t o count the number of objects of a certain class. [L4]
Q2. What is a class? How is it created? Write an example class [L4]
Q3. What are constructors? How are they different from member functions? [L4]
Q4. What are static data members? Explain with an example what the use of static data
members is. [L4]
Q5. Demonstrate with C++ program for
i) Passing objects to functions ii) Returning objects
[ L4]
Q6. Write a program to add two complex numbers using operator overloading concept.
[L4]
Q7. Explain the wrapper classes with examples. [L4]
Q8. How to achieve operator overloading through friend Function? [L4]
Q9. Write a C++ program to find the area of various 2D shapes such as square, rectangle,
triangle, circle and ellipse using function overloading. [L4]
Q10. Write a program using friend functions for overloading <>operators. [L4]
UNIT-3[CO3]
UNIT-4[CO4]
Q1. Explain different types of inheritance with block diagram and an example for each [L4]
Q2. What is the ambiguity that arises in multiple inheritance? How it can be overcome.
Explain with example [L3]
Q3. Discuss with examples, the implications of deriving a class from an existing class by the
‘public’and‘protected’ access specifiers. [L3]
Q4. Write a C++ program to initialize base class members through a derived class
constructor. [L3]
Q5. What is inheritance? How to inherit a base class as protected? Explain it in multiple base
classes. [L4]
Q6. What is a virtual table? .How does the implementing dynamic polymorphism? Explain
with an example. [L4]
Q7. What is the need of virtual function? With an example, explain overriding of Member
function of base in derived class. [L4]
Q8. What is the virtual destructor? [L3]
Q9. List the library classes that handle streams in C++. [L6]
Q10. When are Constructors and Destructors Executed? [L4]
Q11. Explain Granting Access [L3]
Q12. What are virtual functions? What is its use? Give an example. How compilers resolve a
function call? [L3]
Q13. Describe briefly with a figure, class hierarchy provided by C++for stream handling.
[L4]
Q14. Define and give the syntax for the following. [L6]
a) Virtual function
b) Pure Virtual function
c) Abstract Base Class
UNIT-5[CO5]
Assignment No 1
Given Date: Submission Date:
Q No. Questions L/CO
1. State any four points of differentiation between compile [L3,CO1]
time polymorphism and run time polymorphism.
[L2,CO1]
2. Describe the following characteristics of OOP: i)
[L3,CO1]
Encapsulation ii) Polymorphism iii) Inheritance
3.
Explain different types of inheritance with block diagram [L3,CO1]
and an example for each.
4.
Write a C++ program to initialize base class members
through a derived class constructor.
Assignment No 2
Given Date: Submission Date:
Q No. Questions L/CO
1. Write a C++ program to initialize base class members [L3,CO2]
through a derived class constructor.
2. Discuss function prototyping, with an example. Also [L4,CO2]
write its advantages.
3.
Give the comparison of C and C++ with examples. [L4,CO2]
Discuss the issues of procedure oriented systems with [L4,CO2]
4.
respect to object oriented systems.
Assignment No 3
Given Date: Submission Date:
Q No. Questions L/CO
1. Write the general form of function. Explain the different [L4,CO3]
types of argument passing techniques with example.
[L6,CO3]
2. Explain inline functions.
[L4,CO3]
4. What is a class? How is it created? Write an example
class.
Assignment No 4
Given Date: Submission Date:
Q No. Questions L/CO
1. What are constructors? How are they different from [L3,CO4]
member functions?
2. What is the benefit of copy constructor? Explain the [L6,CO4]
necessity of defining your own copy constructor.
3. Explain Generic function with example. [L3,CO4]
4. Discuss with examples, the implications of deriving a
[L6,CO4]
class from an existing class by the ‘public’and‘protected’
access specifiers.
Assignment No 5
Given Date: Submission Date:
Q No. Questions L/CO
1. Why friend f unction is required to overload binary [L5,CO5]
operators?
2. Explain Calling a Virtual Function Through a Base Class [L5,CO5]
Reference.
Q.2
Attempt all: (4 X 2.5 = 10)
a. How an object can be initialized? Explain in brief.
b. What are characteristics of OOP? Explain with example.
c. Define static members in C++.
d. List advantages of friend functions.
Q.3
Attempt all: (2X 5 = 10)
a. Differentiate between compile time polymorphism and run time polymorphism.
b. What do you mean by access specifiers? Explain with example by taking public, private
and protected members in base class.