Professional Documents
Culture Documents
3 0 0 2 40 60
UNIT-2 [15]
• Inheritance: Defining derived class, modes of inheritance, types of inheritance, ambiguity in
inheritance, virtual base class, Function overriding, Member Classes: Nesting of Classes. [4]
• Polymorphism: Introduction & types of polymorphism, Function overloading, operator
overloading, rules for overloading operators, overloading of unary & binary operators, Constructor
Overloading. [4]
• Pointers, Virtual Functions: Declaring & initializing pointers, pointer to objects, this pointer,
pointer to derived classes, static and dynamic binding, dynamic memory allocation: new and delete
operator. [4]
• Exception Handling: Try, Throw, Catch, Throwing an Exception, Catching an Exception. [3]
• Please go through these instructions thoroughly and follow the same pattern while setting the paper as
the students have been prepared according to this format.
• Maximum Marks = 60 Time: 3 Hrs
• Weightage per unit = 20 marks (excluding over attempt weightage)
1. Question Paper will consist of ten questions.
2. Section A of question paper is compulsory, containing five parts each of 2 marks covering the whole
syllabus (short answer type- total 10 marks)
3. Set three questions from each unit I, II and III. Students will attempt 5 questions selecting at least one
question from sections B, C & D. Each question carries 10 marks. Questions of Section B will be from
unit I, Questions of Section C from unit II and Questions of section D from unit III
4. In the question paper, distribution of the questions should be by considering 30 % numerical part and 70
% conceptual.
To make programs simpler for a human to read and write, imperative statements
can be grouped into sections known as code blocks.
In the 1950s, the idea of grouping a program's code into blocks was first
implemented in the ALGOL programming language. They were originally called
"compound statements," but today these blocks of code are known as procedures.
i) Pure Functional Languages − These types of functional languages support only the
functional paradigms. For example − C.
ii) Impure Functional Languages − These types of functional languages support the
functional paradigms and imperative style programming. For example − LISP.
The prime purpose of C++ programming was to add object orientation to the C
programming language, which is in itself one of the most powerful
programming languages.
The core of the pure object-oriented programming is to create an object, in
code, that has certain properties and methods. While designing C++ modules,
we try to see whole world in the form of objects.
For example a car is an object which has certain properties such as color,
number of doors, and the like. It also has certain methods such as accelerate,
brake, and so on.