II IT Handbook SEM 1 2021-22-134-159 - OOPS
II IT Handbook SEM 1 2021-22-134-159 - OOPS
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”.
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.
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.
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
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
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
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-
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
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
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-
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.
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
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
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
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
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
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
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.
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