0% found this document useful (0 votes)
15 views26 pages

II IT Handbook SEM 1 2021-22-134-159 - OOPS

The document outlines a course on Object Oriented Programming using C++, focusing on C++ features such as data abstraction, encapsulation, inheritance, and polymorphism. It includes prerequisites, course objectives, outcomes, and assessment methods related to engineering knowledge and problem-solving. The course content is divided into units covering C++ basics, classes, inheritance, I/O operations, and exception handling.

Uploaded by

RAJESH
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
0% found this document useful (0 votes)
15 views26 pages

II IT Handbook SEM 1 2021-22-134-159 - OOPS

The document outlines a course on Object Oriented Programming using C++, focusing on C++ features such as data abstraction, encapsulation, inheritance, and polymorphism. It includes prerequisites, course objectives, outcomes, and assessment methods related to engineering knowledge and problem-solving. The course content is divided into units covering C++ basics, classes, inheritance, I/O operations, and exception handling.

Uploaded by

RAJESH
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/ 26

OBJECT ORIENTED PROGRAMMING USING C++(CS305PC)

COURSE PLANNER
I.COURSEOVERVIEW:
 To understand how C++ improves C with object-oriented features.
 To learn how to write inline functions for efficiency and performance.
 To learn the syntax and semantics of the C++ programming language.
 To learn how to design C++ classes for code reuse.
 To learn how to implement copy constructors and class member functions.
 To understand the concept of data abstraction and encapsulation.
 To learn how to overload functions and operators in C++.
 To learn how inheritance and virtual functions implement dynamic binding with
polymorphism.
 To learn how to use exception handling in C++ programs.

II.PRE-REQUISITES:
A course on “Programming for Problem Solving using C”.

III. COURSE OBJECTIVIES:


 Introduces Object Oriented Programming concepts using the C++ language.
 Introduces the principles of data abstraction, inheritance and polymorphism
 Introduces the principles of virtual functions and polymorphism
 Introduces handling formatted I/O and unformatted I/O
 Introduces exception handling

IV.COURSE OUTCOMES:
 Able to develop programs with reusability.
 Develop programs for file handling.
 Handle exceptions in programming.
 Develop applications for a range of problems using object-oriented programming
techniques.

V.HOW PROGRAM OUTCOMES ARE ASSESSED:


Proficiency
Program Outcomes (PO) Level
assessed by
PO1Engineering knowledge: Apply the knowledge of
mathematics, science, engineering fundamentals, and an
engineering specialization to the solution of complex 2.5 Mini Projects
engineering problems related to Computer Science and
Engineering.
PO2 Problem analysis: Identify, formulate, review research Lectures,
1. Assignments,
literature, and analyze complex engineering problems Exams

CSE II YEAR I SEM Page 134


Proficiency
Program Outcomes (PO) Level
assessed by
related to Computer Science and Engineering and
reaching substantiated conclusions using first principles of
mathematics, natural sciences, and engineering sciences.
PO3 Design/development of solutions: Design solutions for
complex engineering problems related to Computer
Science and Engineering and design system components
2.5 Mini Projects
or processes that meet the specified needs with appropriate
consideration for the public health and safety, and the
cultural, societal, and environmental considerations.
PO4 Conduct investigations of complex problems: Use
research-based knowledge and research methods including
design of experiments, analysis and interpretation of data, 2.5 --
and synthesis of the information to provide valid
conclusions.
PO5 Modern tool usage: Create, select, and apply appropriate
techniques, resources, and modern engineering and IT
tools including prediction and modeling to complex 2 --
engineering activities with an understanding of the
limitations.
PO6 The engineer and society: Apply reasoning informed by
the contextual knowledge to assess societal, health, safety,
legal and cultural issues and the consequent - --
responsibilities relevant to the Computer Science and
Engineering professional engineering practice.
PO7 Environment and sustainability: Understand the impact
of the Computer Science and Engineering professional Lectures,
engineering solutions in societal and environmental - Assignments,
contexts, and demonstrate the knowledge of, and need for Exams
sustainable development.
PO8 Ethics: Apply ethical principles and commit to
professional ethics and responsibilities and norms of the -
engineering practice.
PO9 Individual and team work: Function effectively as an
individual, and as a member or leader in diverse teams, - Mini Projects
and in multidisciplinary settings.
PO10 Communication: Communicate effectively on complex
engineering activities with the engineering community and
- --
with society at large, such as, being able to comprehend
and write effective reports and design documentation,
CSE II YEAR I SEM Page 135
Proficiency
Program Outcomes (PO) Level
assessed by
make effective presentations, and give and receive clear
instructions.
PO11 Project management and finance: Demonstrate
knowledge and understanding of the engineering and Lectures,
management principles and apply these to one’s own Assignments,
work, as a member and leader in a team, to manage Exams
projects and in multidisciplinary environments.
PO12 Life-long learning: Recognize the need for, and have the
Lectures,
preparation and ability to engage in independent and life-
Assignments,
long learning in the broadest context of technological Exams
change.

VI. PROGRAM SPECIFIC OUTCOMES ARE ASSESSED:

Proficienc
Program Specific Outcomes (PSO) Level y assessed
by
PSO1 Foundation of mathematical concepts: To use
mathematical methodologies to crack problem using Mini
-
suitable mathematical analysis, data structure and suitable Project
algorithm.
PSO2 Foundation of Computer System: The ability to
interpret the fundamental concepts and methodology of Lectures,
Assignme
computer systems. Students can understand the 2
nts,
functionality of hardware and software aspects of Exams
computer systems.
PSO3 Foundations of Software development: The ability to
grasp the software development lifecycle and
methodologies of software systems. Possess competent
Mini
skills and knowledge of software design process. 2
Project
Familiarity and practical proficiency with a broad area of
programming concepts and provide new ideas and
innovations towards research.

CSE II YEAR I SEM Page 136


VII. COURSE CONTENT:
UNIT - I
Object-Oriented Thinking: Different paradigms for problem solving, need for OOP paradigm,
differences between OOP and Procedure oriented programming, Overview of OOP concepts
Abstraction, Encapsulation, Inheritance and Polymorphism.
C++ Basics: Structure of a C++ program, Data types, Declaration of variables, Expressions,
Operators, Operator Precedence, Evaluation of expressions, Type conversions, Pointers, Arrays,
Pointers and Arrays, Strings, Structures, References. Flow control statement- if, switch, while,
for, do, break, continue, goto statements. Functions - Scope of variables, Parameter passing,
Default arguments, inline functions, Recursive functions, Pointers to functions. Dynamic
memory allocation and de-allocation operators-new and delete, Preprocessor directives.
UNIT - II
C++ Classes and Data Abstraction: Class definition, Class structure, Class objects, Class
scope, this pointer, Friends to a class, Static class members, Constant member functions,
Constructors and
Destructors, Dynamic creation and destruction of objects, Data abstraction, ADT and
information hiding.
UNIT - III
Inheritance: Defining a class hierarchy, Different forms of inheritance, Defining the Base and
Derived classes, Access to the base class members, Base and Derived class construction,
Destructors, Virtual base class.
Virtual Functions and Polymorphism: Static and Dynamic binding, virtual functions, Dynamic
binding through virtual functions, Virtual function call mechanism, Pure virtual functions,
Abstract classes, Implications of polymorphic use of classes, Virtual destructors.
UNIT - IV
C++ I/O: I/O using C functions, Stream classes hierarchy, Stream I/O, File streams and String
streams, Overloading operators, Error handling during file operations, Formatted I/O.
UNIT - V
Exception Handling: Benefits of exception handling, Throwing an exception, The try block,
Catching an exception, Exception objects, Exception specifications, Stack unwinding,
Rethrowing an exception, Catching all exceptions.
VIII. LESSON PLAN:
REFERE

S. Course Teaching
WEEK

NCES

Link for
N TOPICS Link for PDF Learning methodolo
PPT
O Outcomes gies

UNIT-1
https://drive.google.c https://drive.
om/drive/folders/1rw google.com/ Understan
Introduction Chalk and
k-81oetBh- drive/folders d: object
to object board, PPT
I ifLu26S6h55- /1rwk- oriented T1
oriented presentatio
AtX6ud2i?usp=sharing 81oetBh- programmi
programmin n
ifLu26S6h55- ng
1 g

CSE II YEAR I SEM Page 137


AtX6ud2i?us
p=sharing

https://drive.google.c https://drive.
om/drive/folders/1rw google.com/
k-81oetBh- drive/folders
Different Describe:
ifLu26S6h55- /1rwk-
paradigm problem
AtX6ud2i?usp=sharing 81oetBh- T1
for problem solving
ifLu26S6h55-
solving need
AtX6ud2i?us
,need for p=sharing
oops
2 paradigm
https://drive.google.c https://drive.
om/drive/folders/1rw google.com/
k-81oetBh- drive/folders Define:
Difference
ifLu26S6h55- /1rwk- oops and
between
AtX6ud2i?usp=sharing 81oetBh- procedure T1
oops and
ifLu26S6h55-
procedure oriented
AtX6ud2i?us
oriented program
p=sharing
programmin
3 g
https://drive.google.c https://drive.
Overview
om/drive/folders/1rw google.com/
of oops
k-81oetBh- drive/folders
concepts-
ifLu26S6h55- /1rwk- Understan
encapsulatio
AtX6ud2i?usp=sharing 81oetBh- d: oops T1
n,abstractio
ifLu26S6h55- concepts
n,inheritanc
AtX6ud2i?us
e p=sharing
,polymorphi
4 sm
https://drive.google.c https://drive.
om/drive/folders/1rw google.com/
k-81oetBh- drive/folders
ifLu26S6h55- /1rwk- Understan
2 Introduction d: c++ T1
AtX6ud2i?usp=sharing 81oetBh-
to structure
ifLu26S6h55-
c++,structur
AtX6ud2i?us
e of c++ p=sharing
5 program

CSE II YEAR I SEM Page 138


https://drive.google.c https://drive.
om/drive/folders/1rw google.com/
k-81oetBh- drive/folders
ifLu26S6h55- /1rwk- Define:
AtX6ud2i?usp=sharing 81oetBh- Component
T1
ifLu26S6h55- s and
AtX6ud2i?us Categories
Data types, p=sharing
Declaration
6 of variables,
https://drive.google.c https://drive.
om/drive/folders/1rw google.com/
k-81oetBh- drive/folders
ifLu26S6h55- /1rwk- Understan
AtX6ud2i?usp=sharing 81oetBh- d:
T1
ifLu26S6h55- Expression,
Expressions operators
AtX6ud2i?us
, Operators,
p=sharing
Operator
7 Precedence
https://drive.google.c https://drive.
om/drive/folders/1rw google.com/
k-81oetBh- drive/folders
ifLu26S6h55- /1rwk- Evaluate:
AtX6ud2i?usp=sharing 81oetBh- expressions
Evaluation T1
ifLu26S6h55- and type
of conversion
AtX6ud2i?us
expressions, p=sharing
Type
8 conversions
https://drive.google.c https://drive.
om/drive/folders/1rw google.com/
k-81oetBh- drive/folders Understan
ifLu26S6h55- /1rwk- d:
AtX6ud2i?usp=sharing 81oetBh- Pointers,Ar T1
ifLu26S6h55-
3 Pointers, rays,Pointe
AtX6ud2i?us
Arrays, rs
p=sharing
Pointers and
9 Arrays
Strings, https://drive.google.c https://drive. Understan
T1
10 Structures, om/drive/folders/1rw google.com/ d: String
CSE II YEAR I SEM Page 139
References k-81oetBh- drive/folders ,Structures,
ifLu26S6h55- /1rwk- references
AtX6ud2i?usp=sharing 81oetBh-
ifLu26S6h55-
AtX6ud2i?us
p=sharing

https://drive.google.c https://drive.
Flow
om/drive/folders/1rw google.com/
control
k-81oetBh- drive/folders
statement- Describe:
ifLu26S6h55- /1rwk-
if, switch, flow
AtX6ud2i?usp=sharing 81oetBh- T1
while, for, control
ifLu26S6h55-
do, break, statements
AtX6ud2i?us
continue,
p=sharing
goto
11 statements
https://drive.google.c https://drive.
Functions -
om/drive/folders/1rw google.com/
Scope of Describe:
k-81oetBh- drive/folders
variables, ISDN
ifLu26S6h55- /1rwk-
Parameter Physical
AtX6ud2i?usp=sharing 81oetBh- T1
passing, layer:
ifLu26S6h55-
Default Transmissi
AtX6ud2i?us
arguments, on modes
p=sharing
inline
12 functions
https://drive.google.c https://drive.
om/drive/folders/1rw google.com/
k-81oetBh- drive/folders
ifLu26S6h55- /1rwk-
AtX6ud2i?usp=sharing 81oetBh- Describe:
T1
ifLu26S6h55- functions
Recursive
AtX6ud2i?us
functions,
4 p=sharing
Pointers to
13 functions.
https://drive.google.c https://drive.
om/drive/folders/1rw google.com/ Understan
k-81oetBh- drive/folders d: Pointer
T1
ifLu26S6h55- /1rwk- to
Pointers to functions
AtX6ud2i?usp=sharing 81oetBh-
14 functions.
CSE II YEAR I SEM Page 140
ifLu26S6h55-
AtX6ud2i?us
p=sharing

https://drive.google.c https://drive.
om/drive/folders/1rw google.com/ Understan
Dynamic d:
k-81oetBh- drive/folders
memory Dynamic
ifLu26S6h55- /1rwk-
allocation memory
AtX6ud2i?usp=sharing 81oetBh- T1
and de- allocation
ifLu26S6h55-
allocation and
AtX6ud2i?us
operators- deallocatio
p=sharing
new and n
15 delete.
https://drive.google.c https://drive.
om/drive/folders/1rw google.com/
k-81oetBh- drive/folders Understan
ifLu26S6h55- /1rwk- d:
AtX6ud2i?usp=sharing 81oetBh- Preprocess T1
ifLu26S6h55- or
AtX6ud2i?us
directives
p=sharing
Preprocesso
16 r directives
https://drive.google.c https://drive.
om/drive/folders/1rw google.com/
k-81oetBh- drive/folders
ifLu26S6h55- /1rwk-
AtX6ud2i?usp=sharing 81oetBh- T1
ifLu26S6h55-
AtX6ud2i?us
p=sharing

17 5 REVISION
https://drive.google.c https://drive.
om/drive/folders/1rw google.com/
k-81oetBh- drive/folders
ifLu26S6h55- /1rwk-
AtX6ud2i?usp=sharing 81oetBh- T1
ifLu26S6h55-
AtX6ud2i?us
MOCK
p=sharing
18 TEST-1
CSE II YEAR I SEM Page 141
https://drive.google.c https://drive.
om/drive/folders/1rw google.com/
k-81oetBh- drive/folders
ifLu26S6h55- /1rwk-
AtX6ud2i?usp=sharing 81oetBh-
ifLu26S6h55-
AtX6ud2i?us
p=sharing
Tutorial/bri
19 dge class #1

UNIT-2
https://drive.google.c https://drive.
om/drive/folders/1rw google.com/
k-81oetBh- drive/folders Understan
ifLu26S6h55- /1rwk- d:Classes
AtX6ud2i?usp=sharing 81oetBh- and data T1
C++
ifLu26S6h55-
Classes and Abstractio
AtX6ud2i?us
Data n
p=sharing
Abstraction-
20 5 Introduction
Class https://drive.google.c https://drive.
definition, om/drive/folders/1rw google.com/
Class k-81oetBh- drive/folders
structure, ifLu26S6h55- /1rwk- Understan
Class AtX6ud2i?usp=sharing 81oetBh- d:
T1
objects ifLu26S6h55- Class,objec
AtX6ud2i?us ts
Chalk and
p=sharing
board, PPT
21 presentatio
6 n
https://drive.google.c https://drive. T1
om/drive/folders/1rw google.com/
k-81oetBh- drive/folders
ifLu26S6h55- /1rwk- Describe:
AtX6ud2i?usp=sharing 81oetBh- Class
ifLu26S6h55- scope, this
AtX6ud2i?us pointer
p=sharing
Class scope,
22 this pointer
CSE II YEAR I SEM Page 142
https://drive.google.c https://drive. T1
om/drive/folders/1rw google.com/
k-81oetBh- drive/folders
ifLu26S6h55- /1rwk- Define:
AtX6ud2i?usp=sharing 81oetBh- Friends to
ifLu26S6h55-
class
AtX6ud2i?us
p=sharing
Friends to a
23 class
https://drive.google.c https://drive. T1
om/drive/folders/1rw google.com/
k-81oetBh- drive/folders
ifLu26S6h55- /1rwk- Understan
AtX6ud2i?usp=sharing 81oetBh- d: Static
ifLu26S6h55- class
AtX6ud2i?us members
p=sharing
Static class
24 members,
https://drive.google.c https://drive. T1
om/drive/folders/1rw google.com/
k-81oetBh- drive/folders
ifLu26S6h55- /1rwk- Describe:
AtX6ud2i?usp=sharing 81oetBh- Constant
ifLu26S6h55- member
AtX6ud2i?us functions
Constant p=sharing
member
25 functions
https://drive.google.c https://drive. T1
7 om/drive/folders/1rw google.com/
k-81oetBh- drive/folders
ifLu26S6h55- /1rwk- Understan
AtX6ud2i?usp=sharing 81oetBh- d:
ifLu26S6h55- constructo
AtX6ud2i?us rs
p=sharing
Constructor
26 s
https://drive.google.c https://drive. Understan T1
om/drive/folders/1rw google.com/ d:
27 Destructors k-81oetBh- drive/folders destructors

CSE II YEAR I SEM Page 143


ifLu26S6h55- /1rwk-
AtX6ud2i?usp=sharing 81oetBh-
ifLu26S6h55-
AtX6ud2i?us
p=sharing

https://drive.google.c https://drive. T1
om/drive/folders/1rw google.com/ Understan
k-81oetBh- drive/folders d:
ifLu26S6h55- /1rwk- Dynamic
AtX6ud2i?usp=sharing 81oetBh- creation
ifLu26S6h55- and
Dynamic
AtX6ud2i?us
creation and destruction
p=sharing
destruction of objects
28 of objects
https://drive.google.c https://drive. T1
om/drive/folders/1rw google.com/
k-81oetBh- drive/folders
ifLu26S6h55- /1rwk- Describe:
AtX6ud2i?usp=sharing 81oetBh- Data
ifLu26S6h55-
abstraction
AtX6ud2i?us
p=sharing
Data
29 abstraction
https://drive.google.c https://drive. T1
om/drive/folders/1rw google.com/
k-81oetBh- drive/folders
8
ifLu26S6h55- /1rwk- Describe:
AtX6ud2i?usp=sharing 81oetBh- Informatio
ifLu26S6h55- n hiding
AtX6ud2i?us
ADT and p=sharing
information
30 hiding
https://drive.google.c https://drive. T1
om/drive/folders/1rw google.com/ Apply:conc
k-81oetBh- drive/folders epts in
ifLu26S6h55- /1rwk- writing
Example AtX6ud2i?usp=sharing 81oetBh- program.
31 Programs ifLu26S6h55-

CSE II YEAR I SEM Page 144


AtX6ud2i?us
p=sharing

https://drive. T1
google.com/
drive/folders
/1rwk-
81oetBh-
ifLu26S6h55-
AtX6ud2i?us
p=sharing
Tutorial/bri
32 dge class #2
UNIT-3
https://drive.google.c https://drive. T1
om/drive/folders/1rw google.com/
k-81oetBh- drive/folders
ifLu26S6h55- /1rwk- Understan
AtX6ud2i?usp=sharing 81oetBh- d:
ifLu26S6h55- inheritanc
Inheritance: e
AtX6ud2i?us
Defining a p=sharing
class
33 hierarchy
https://drive.google.c https://drive. T1
om/drive/folders/1rw google.com/
Chalk and
k-81oetBh- drive/folders
Different Describe: board, PPT
9 ifLu26S6h55- /1rwk-
forms of Different presentatio
AtX6ud2i?usp=sharing 81oetBh-
inheritance, types of n
ifLu26S6h55-
Defining inheritance
AtX6ud2i?us
the Base p=sharing
and Derived
34 classes
https://drive.google.c https://drive. T1
om/drive/folders/1rw google.com/
Describe:
k-81oetBh- drive/folders
Access to
Access to ifLu26S6h55- /1rwk-
the base
the base AtX6ud2i?usp=sharing 81oetBh-
class
class ifLu26S6h55-
35 members, AtX6ud2i?us

CSE II YEAR I SEM Page 145


p=sharing

https://drive.google.c https://drive. T1
om/drive/folders/1rw google.com/
k-81oetBh- drive/folders
ifLu26S6h55- /1rwk- Understan
AtX6ud2i?usp=sharing 81oetBh- d: Base
ifLu26S6h55- and derived
Base and class
AtX6ud2i?us
Derived p=sharing
class
36 construction
https://drive.google.c https://drive. T1
om/drive/folders/1rw google.com/
k-81oetBh- drive/folders
ifLu26S6h55- /1rwk- Understan
AtX6ud2i?usp=sharing 81oetBh- d: Virtual
ifLu26S6h55- base class
AtX6ud2i?us
p=sharing
Virtual base
37 class.
https://drive.google.c https://drive. T1
om/drive/folders/1rw google.com/
k-81oetBh- drive/folders
ifLu26S6h55- /1rwk- Describe:
1 AtX6ud2i?usp=sharing 81oetBh- Static and
0 ifLu26S6h55- Dynamic
AtX6ud2i?us binding
Static and p=sharing
Dynamic
38 binding,
https://drive.google.c https://drive. T1
om/drive/folders/1rw google.com/
k-81oetBh- drive/folders
virtual
ifLu26S6h55- /1rwk- Describe:
functions,
AtX6ud2i?usp=sharing 81oetBh- Virtual
Dynamic
ifLu26S6h55-
binding functions
AtX6ud2i?us
through
p=sharing
virtual
39 functions

CSE II YEAR I SEM Page 146


https://drive.google.c https://drive. T1
om/drive/folders/1rw google.com/
k-81oetBh- drive/folders
ifLu26S6h55- /1rwk- Describe
Virtual Pure
AtX6ud2i?usp=sharing 81oetBh-
function virtual
ifLu26S6h55-
call functions
AtX6ud2i?us
mechanism,
p=sharing
Pure virtual
40 functions,
https://drive.google.c https://drive. T1
om/drive/folders/1rw google.com/
k-81oetBh- drive/folders Describe:
ifLu26S6h55- /1rwk- implication
classes, s of
AtX6ud2i?usp=sharing 81oetBh-
1 Implications polymorphi
ifLu26S6h55-
1 of c use of
AtX6ud2i?us
polymorphi classes
p=sharing
c use of
41 classes
Tutorial/bri T1
42 dge class #3
UNIT-4
https://drive.google.c https://drive. T1
om/drive/folders/1rw google.com/
k-81oetBh- drive/folders
ifLu26S6h55- /1rwk- Understan
AtX6ud2i?usp=sharing 81oetBh- d: I/O
ifLu26S6h55- using c
AtX6ud2i?us functions
C++ I/O:
p=sharing
I/O using C Chalk and
43 1 functions board, PPT
1 https://drive.google.c https://drive. presentatio T1
om/drive/folders/1rw google.com/ n
k-81oetBh- drive/folders
ifLu26S6h55- /1rwk- Describe:
AtX6ud2i?usp=sharing 81oetBh- stream
ifLu26S6h55- class
AtX6ud2i?us hierarchy
Stream p=sharing
classes
44 hierarchy
CSE II YEAR I SEM Page 147
https://drive.google.c https://drive. T1
om/drive/folders/1rw google.com/
k-81oetBh- drive/folders
ifLu26S6h55- /1rwk- Describe:
AtX6ud2i?usp=sharing 81oetBh- Stream I/O
ifLu26S6h55- File
AtX6ud2i?us streams
p=sharing
Stream I/O,
45 File streams
https://drive.google.c https://drive. T1
om/drive/folders/1rw google.com/
k-81oetBh- drive/folders
ifLu26S6h55- /1rwk- Understan
AtX6ud2i?usp=sharing 81oetBh- d: String
ifLu26S6h55- streams
AtX6ud2i?us
p=sharing
String
46 1 streams
2 https://drive.google.c https://drive. T1
om/drive/folders/1rw google.com/
k-81oetBh- drive/folders
ifLu26S6h55- /1rwk- Understan
AtX6ud2i?usp=sharing 81oetBh- d:
ifLu26S6h55- overloadin
AtX6ud2i?us g operators
p=sharing
Overloading
47 operators
https://drive.google.c https://drive. T1
om/drive/folders/1rw google.com/
k-81oetBh- drive/folders
ifLu26S6h55- /1rwk- Describe:
AtX6ud2i?usp=sharing 81oetBh- Error
ifLu26S6h55- handling
Error
AtX6ud2i?us
handling
p=sharing
during file
48 operations
https://drive.google.c https://drive. Describe: T1
1
Formatted om/drive/folders/1rw google.com/ formatted
3
49 I/O. k-81oetBh- drive/folders I/O

CSE II YEAR I SEM Page 148


ifLu26S6h55- /1rwk-
AtX6ud2i?usp=sharing 81oetBh-
ifLu26S6h55-
AtX6ud2i?us
p=sharing

https://drive.google.c https://drive. T1
om/drive/folders/1rw google.com/
k-81oetBh- drive/folders
ifLu26S6h55- /1rwk- Apply:
AtX6ud2i?usp=sharing 81oetBh- writing
ifLu26S6h55-
programs
AtX6ud2i?us
p=sharing
Example
50 Programs
https://drive.google.c https://drive.
om/drive/folders/1rw google.com/
k-81oetBh- drive/folders
ifLu26S6h55- /1rwk-
AtX6ud2i?usp=sharing 81oetBh-
ifLu26S6h55-
AtX6ud2i?us
p=sharing
Tutorial/bri
51 dge class #4
https://drive.google.c https://drive.
om/drive/folders/1rw google.com/
k-81oetBh- drive/folders
ifLu26S6h55- /1rwk-
AtX6ud2i?usp=sharing 81oetBh-
ifLu26S6h55-
AtX6ud2i?us
p=sharing
Tutorial/bri
52 dge class #5
UNIT-5
https://drive.google.c https://drive. T1
Chalk and
om/drive/folders/1rw google.com/ Describe:
1 board, PPT
Exception k-81oetBh- drive/folders Exception
4 presentatio
Handling: ifLu26S6h55- /1rwk- handling
n
53 Introduction 81oetBh-

CSE II YEAR I SEM Page 149


AtX6ud2i?usp=sharing ifLu26S6h55-
AtX6ud2i?us
p=sharing

https://drive.google.c https://drive. T1
om/drive/folders/1rw google.com/
k-81oetBh- drive/folders
ifLu26S6h55- /1rwk- Discus:
AtX6ud2i?usp=sharing 81oetBh- Benefits of
ifLu26S6h55- exception
AtX6ud2i?us handling
Benefits of
p=sharing
exception
54 handling
https://drive.google.c https://drive. T1
om/drive/folders/1rw google.com/
k-81oetBh- drive/folders
ifLu26S6h55- /1rwk- Describe:
AtX6ud2i?usp=sharing 81oetBh- Throwing
ifLu26S6h55- an
AtX6ud2i?us exception
Throwing p=sharing
an
55 exception
https://drive.google.c https://drive. T1
om/drive/folders/1rw google.com/
k-81oetBh- drive/folders
ifLu26S6h55- /1rwk-
AtX6ud2i?usp=sharing 81oetBh- Explain:
ifLu26S6h55- try block
AtX6ud2i?us
p=sharing
The try
56 block
https://drive.google.c https://drive. T1
om/drive/folders/1rw google.com/
k-81oetBh- drive/folders
1 ifLu26S6h55- /1rwk- MOCK
5 AtX6ud2i?usp=sharing 81oetBh- TEST-2
ifLu26S6h55-
AtX6ud2i?us
MOCK p=sharing
57 TEST-2
CSE II YEAR I SEM Page 150
https://drive.google.c https://drive. T1
om/drive/folders/1rw google.com/
k-81oetBh- drive/folders
ifLu26S6h55- /1rwk- Understand
AtX6ud2i?usp=sharing 81oetBh- : catching
ifLu26S6h55- an
AtX6ud2i?us exception
p=sharing
Catching an
58 exception
https://drive.google.c https://drive. T1
om/drive/folders/1rw google.com/
k-81oetBh- drive/folders
ifLu26S6h55- /1rwk- Understand
AtX6ud2i?usp=sharing 81oetBh- : Exception
ifLu26S6h55-
objects
AtX6ud2i?us
p=sharing
Exception
59 objects
https://drive.google.c https://drive. T1
om/drive/folders/1rw google.com/
k-81oetBh- drive/folders
ifLu26S6h55- /1rwk- Understand
AtX6ud2i?usp=sharing 81oetBh- : Exception
ifLu26S6h55- specificatio
AtX6ud2i?us ns
Exception p=sharing
specificatio
60 ns
https://drive.google.c https://drive. T1
om/drive/folders/1rw google.com/
k-81oetBh- drive/folders
ifLu26S6h55- /1rwk- Define :
AtX6ud2i?usp=sharing 81oetBh- Stack
1 ifLu26S6h55-
unwinding
6 AtX6ud2i?us
p=sharing
Stack
61 unwinding
Rethrowing https://drive.google.c https://drive. Understand T1
62 an om/drive/folders/1rw google.com/ :Rethrowin
CSE II YEAR I SEM Page 151
exception k-81oetBh- drive/folders g an
ifLu26S6h55- /1rwk- exception
AtX6ud2i?usp=sharing 81oetBh-
ifLu26S6h55-
AtX6ud2i?us
p=sharing

https://drive.google.c https://drive. T1
om/drive/folders/1rw google.com/
k-81oetBh- drive/folders Understan
ifLu26S6h55- /1rwk- d:
AtX6ud2i?usp=sharing 81oetBh- Catchingal
ifLu26S6h55-
l
AtX6ud2i?us
exceptions
p=sharing
Catching all
63 exceptions.
https://drive.google.c https://drive.
om/drive/folders/1rw google.com/
k-81oetBh- drive/folders
ifLu26S6h55- /1rwk-
AtX6ud2i?usp=sharing 81oetBh-
ifLu26S6h55-
AtX6ud2i?us
p=sharing
Tutorial/bri
64 dge class #6
II MID EXAMINATIONS (WEEK 17)

TEXT BOOKS:
1. The Complete Reference C++, 4th Edition, Herbert Schildt, Tata McGraw Hill.
2. Problem solving with C++: The Object of Programming, 4th Edition, Walter Savitch, Pearson Education.
REFERENCES:
1. The C++ Programming Language, 3rd Edition, B. Stroutstrup, Pearson Education.
2. OOP in C++, 3rd Edition, T. Gaddis, J. Walters and G. Muganda, Wiley Dream Tech Press.
3. Object Oriented Programming in C++, 3rd Edition, R. Lafore, Galigotia Publications Pvt Ltd.

CSE II YEAR I SEM Page 152


XI.MAPPING COURSE OUTCOMES LEADING TO THE ACHIEVEMENT OF

PROGRAM OUTCOMES AND PROGRAM SPECIFIC OUTCOMES:

Program Specific
Program Outcomes (PO)
Outcomes (PSO)
Outcomes
Course

PSO1

PSO2

PSO3
PO10

PO11

PO12
PO2
PO1

PO3

PO4

PO5

PO6

PO7

PO8

PO9
CO1 3 1 3 3 2 - 2 2
CO2 3 1 3 3 2 - 2 2
CO3 2 1 2 2 2 - 2 2
CO4 2 1 2 2 2 - 2 2
CO5 2.
5 1 2.5 2.5 2 2 2
AVG 3 1 3 3 2 - 2 2
DESCRIPTIVE QUESTIONS
UNIT-1
Short Answer Questions
QUESTIONS Blooms Course
taxonomy outcomes
level
1. What are different object oriented Paradigm? Knowledge 1
2. What is difference between Object oriented and project
Knowledge 1
oriented programming?
3. Define abstraction,encapsulation,inheritance and
Knowledge 1
polymorphism?
4. What are applications of OOPS? Knowledge 1
5. What are different I/O operators we use in C++? Knowledge 1
6. Why we use iostream.h and Namespace in C++? Knowledge 1
7. What is inline function? Knowledge 1
8. Why we use new and delete operator? Knowledge 1

Long Answer Questions


1. Explain the different properties of object oriented Understand 1
programming?
2. Explain the structure of C++ program with an example? Understand 1
3 Explain the conditional statements in C++ with an examples? Understand 1
CSE II YEAR I SEM Page 153
4. Explain the looping Statements in C++ with an examples? Understand 1
5. Discuss about the parameter passing in C++? Knowledge 1
6. Explain the use of pointers in C++? Understand 1
7. Explain the memory allocation and de-allocation function in Understand 1
C++?
UNIT-2
Short Answer Questions
QUESTIONS Blooms Course
taxonomy outcomes
level
1. Define Class and object Knowledge 2
2. What is a friend function? Knowledge 2
3. What do you mean by static class? Knowledge 2
4. What do you mean by constructor and destructor? Knowledge 2
5. What is data abstraction? Knowledge 2
6. What is data hiding? Knowledge 2
Long Answer Questions
1. Explain the structure of class and object in C++ with a Understand 2
example?
2. Explain the concept of use of constructor and destructor in Understand 2
C++ with an example?
3. Explain the concept of friend function and its use in C++? Understand 2
4. Explain the concept of Data Abstraction and information Understand 2
hiding?
5. Explain the different access specifier which we use in Understand 2
C++?
UNIT-3
Short Answer Questions
QUESTIONS Blooms Course
taxonomy level outcome
s
1. What do you mean by inheritance? Knowledge 3
2. What are the different types of inheritance? Knowledge 3
3. What do you mean by virtual class? Knowledge 3
4. Discuss about static and dynamic binding? Understand 3
5. What is virtual function? Knowledge 3
6. What is polymorphism? Knowledge 3
7. What is abstract class? Knowledge 3
8. What is virtual destructor? Knowledge 3

CSE II YEAR I SEM Page 154


Long Answer Questions
1. Explain the concept of inheritance with an example? Understand 3

2. Explain the different forms of inheritance in c++? Understand 3

3. Explain the concept of virtual function in C++? Understand 3

4. Explain the concept of Abstract Class in C++? Understand 3

5. Explain operator overloading and function overloading in Understand 3


C++?
6. Explain the dynamic binding through virtual functions Understand 3

UNIT-4
Short Answer Questions
QUESTIONS Blooms Course
taxonomy outcomes
level
1. What do you understand by stream classes? Knowledge 4
2. State the different Unformatted input/output Operations? Knowledge 4
3. State Formatted Console I/O Operations? Knowledge 4
4. Why we use getline() and write() functions? Knowledge 4
5. What is the role of iomanip file? Knowledge 4
6. What are the different steps of file operations? Knowledge 4
7. What do you mean bt error handling during file Knowledge 4
operations?
8. What are input and output streams for files operation? Knowledge 4

Long Answer Questions


1.What is a file mode ?describe the various file mode options
available. Knowledge 4

2.Describe briefly the features of I/O system supported by


C++. Understand 4

3.What is the basic difference between manipulators and ios


member functions in implementation? Give examples. Understand 4

4.Explain the different sets for Stream classes for console


operations? Understand 4

CSE II YEAR I SEM Page 155


5.How is cout able to display various types of data without
any special instructions? Understand 4

6.Explain the different sets of file stream classes Understand 4

UNIT-5
Short Answer Questions
QUESTIONS Blooms Course
taxonomy outcomes
level
1. What do you mean by exception handling? Knowledge 5
2. Describe the role of keywords try,throw and catch
Understand 5
in exception handling?
3. When should a program throw an exception? Knowledge 5
4. When do we used multiple catch handlers? Understand 5
5. What do you mean by rethrowing an exception Understand 5
Long Answer Questions

1. Explain mechanism of exception handling. Understand 5

2. What is an exception specification? When is it used? Knowledge 5

3. Explain in detail about rethrowing an exception? Understand 5

4. What do you mean by stack unwinding? Knowledge 5

UNIT-1
OBJECTIVE QUESTIONS:
1.) ____are the basic run time entities in an object-oriented system.
A) Class b) object c) data d) none
2.) The wrapping up of data and function into a single unit (called class) is known as
a) Data hiding b) encapsulation c) insulation d) information
3.) _____is the process by which objects of one class acquired the properties of objects of
another classes.
a) Inheritance b) classification c) reusability d) all the above
4). The process of making an operator to exhibit different behaviors in different instances
is known as ________
a) information hiding b) function overloading c) operator overloading d) none
5) _____is the namespace where ANSI C++ standard class libraries are defined.
a) keyword b) std c) keyword d)directives e) none

CSE II YEAR I SEM Page 156


Fill in the blanks:
6) _________means that the code associated with a given procedure is not known until the
time of the run time.
7) __________involves specifying the name of the object, the name of the function and the
information to be sent.
8) An _________ function is expanded in the line where it is invoked.

9) The variables declared within the body of the block are called __________and can be used
only within the block.
10) __________means one name, multiple forms. It allows us to have more than one function
with the same name in a program.

UNIT-2
OBJECTIVE QUESTIONS:
1) _________ (having the same name as that of the class) is a member function which is
automatically used to initialize the objects of the class type with legal initial values
a) Constructor b) destructor c) virtual function d) none
2) The operator::known as ________
a) Access specifier b) scope resolution c) new d) none
3) refers to putting together essential features without including background details
a) Information hiding b) Data Abstraction c) Dynamic binding d) None
4) The data declared under ________section are hidden and safe from accidental
manipulation.
a) Public b) Protected c) Private d) none
5) It is of the form classname (classname &) and used for the initialization of an object form
another object of same type
a) Copy constructor b) initialization c) overloaded constructor d)none

Fill in the blanks:


6) _________type (not even void) cannot be specified for constructors.
7) An object of a class with a constructor cannot be used as a member of a_______
8) The make implicit calls to the memory allocation and deallocation operators ______ and
______are used
9) _____________ is implemented as functions and can be member functions or global
functions.
10) In C++, the keywords _________,___________ and _________ are called access
specifiers.

UNIT-3
OBJECTIVE QUESTIONS:
1) _________ is a variable which holds a memory address
a) Local variable c) global variable c) pointer 4) none
2) ___________is a mechanism of reusing and extending existing classes without modifying
them
a) Inheritance b) polymorphism c) reusability d) virtual function

CSE II YEAR I SEM Page 157


3) _______is a mechanism that enables same interface functions to work with the whole
class hierarchy
a) Inheritance b) polymorphism c) reusability d) virtual function
4) ____________ also called late binding
a) Static binding b) dynamic binding c) virtual function d)none
5) _________ is automatically passed to a member function when it is called.
a)This pointer b) friend function c) virtual function d)none

Fill in the blanks:


6)_________ inheritance derive from a single class.
7) Polymorphism mechanism is supported in C++ by the use of _________.
8)________operator is used to deallocate memory
9) _________ is also called early binding.
10) Two types of polymorphism are__________ and__________
UNIT-4
Fill in the blanks:
1) A _______ is a sequence of bytes and serves as a source or destination for an I/O data.
2) The_______ operator is overloaded in the istream class as an extraction operator
3) The classes istream and ostream define two member functions ______ and _______

4) _________for ifstream functions meaning open for reading only.


5) The ____________ member function closes the file.

OBJECTIVE QUESTIONS:
6) The ________functions shifts the associated file’s input file pointer and output file
pointer.
a) seekg () b) put() c) get() d) write()
7) ios::out for ofstream functions meaning ______ for writing only.
a) open b) close c) append() d) none
8) ___________Provides support for simultaneous input and output operations
a) ifstream b) ofstream c) fstream d) filebuf
9) The header file _________provides a set of functions called manipulators which can be
used to manipulate the output format
a) iomanip b) iostream c) fill() d) none
10) The class _____________(through inheritance) provides the facilities for formatted output
a) istream b)ostream c) fstream d) none
UNIT-5
Fill in the blanks:
1) The ___________ block receives the exception send by the throw block in the try block.
2) A ________ may decide to rethrow an exception caught without processing them
3) Exceptions are basically of two types namely, ____________and ______________
4) Exception handling mechanism is basically built upon three
keywords_______,_________,_______
5) The_________ statement catches an exception whose type matches with the type of catch
argument.

CSE II YEAR I SEM Page 158


OBJECTIVE QUESTIONS:
6) Which type of program is recommended to include in try block?
a) static memory allocationb) dynamic memory allocationc) const referenced) pointer
7) Which statement is used to catch all types of exceptions?
a) catch()b) catch(Test t)c) catch(…)d) none of the mentioned
8) What kind of exceptions are available in c++?
a) handled b) unhandled c) staticd) dynamic
9) Which are the two blocks that are used to check error and handle the error?
a) Try and catch b) Trying and catching c) Do and whiled) TryDo and Check
10) How many catch blocks can a single try block can have?
a) Only 1 b) Only 2 c) Maximum 127 d) As many as required

WEBSITES’ ADDRESSES:
1) https://nptel.ac.in/noc/individual_course.php?id=noc18-cs32

2) https://www.tutorialspoint.com/cplusplus/

3) http://www.cplusplus.com/forum/beginner/7199/

EXPERT DETAILS:
1) Prof. Partha Pratim Das IIT Kharagpur
2) Prof D.B. Phatak Dept of CSE iit bombay

LIST OF TOPICS FOR STUDENTS’ SEMINARS:


1. Arrays, Functions, pointers,structure.
2. Introduction to Object Oriented Programming.
3. Inheritance.
4. Exception handling.

CASE STUDIES / SMALL PROJECTS:


Implement the following programs using C++
1. C++ program to print Lucas series upto N terms
2. C++ program to find two unique numbers in an array

CSE II YEAR I SEM Page 159

You might also like