Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

BCS 031

Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

[2] BCS-031

(b) What do you understand by scope of a


No. of Printed Pages : 5 BCS-031
variable ? Compare global variable and
BACHELOR OF COMPUTER
local variable in C++. 5
APPLICATIONS (BCA) (REVISED)
(c) Compare structures and classes in C++.
Term-End Examination What are empty classes ? Explain the

December, 2021 purpose of empty classes. 5

BCS-031 : PROGRAMMING IN C++ (d) What are static members of a class ? What

Time : 3 Hours Maximum Marks : 100 is the utility of having static members ?

Weightage : 75% Explain with the help of an example. 5

Note : Question number 1 is compulsory and carries (e) What are constructors ? Write the

40 marks. Attempt any three questions from characteristics of a constructor. What are

the rest. the limitations of a constructor ? 5

1. (a) What are the essential properties of object (f) What is operator overloading ? Why some

oriented programming ? How does object operators can’t be overloaded ? Write a

oriented programming differ from program to overload ‘+’ operator to add two

structured programming ? 5 complex numbers. 10

P. T. O.
[3] BCS-031 [4] BCS-031

(g) What is STL ? Briefly discuss the 3. (a) What is a friend function ? Write a

components of STL. 5 program in C++ to illustrate the concept of

friend function. 5
2. (a) What do you understand by the signature of
(b) Explain copy constructor with the help of
a method ? Briefly discuss the components of
an example program. 5
the signature of a method. 5
(c) Discuss the role of “new” and “delete” as
(b) Compare virtual functions and pure virtual
memory management operations. 5
functions with the help of an example. 5
(d) Explain the role of destructors in C++
(c) Discuss the taxonomy of C++ data types
memory management. Write a program
with the help of a suitable block diagram. 5
in C++ to demonstrate the use of
(d) What are Breaking Statements ? Give
destructors. 5
syntax of the following breaking
4. (a) Explain the access specifiers used in
statements : 5
inheritance in C++ with the help of an
(i) break
example. 5
(ii) continue
(b) Compare multiple inheritance with
(iii) goto
multilevel inheritance and hierarchical

(iv) exit inheritance. 5

P. T. O.
[5] BCS-031

(c) What is Polymorphism ? What are the

advantages of polymorphism ? Mention the

types of polymorphism supported by C++. 5

(d) Briefly discuss the term function

overriding, with the help of suitable

example code in C++. 5

5. Write short notes on the following : 5×4=20

(a) File Stream Operations

(b) Inline Functions

(c) Exception Handling

(d) Class Templates

(e) Function Templates

BCS–031

P. T. O.

You might also like