BCS 031
BCS 031
BCS 031
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 ?
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
1. (a) What are the essential properties of object (f) What is operator overloading ? Why some
oriented programming differ from program to overload ‘+’ operator to add two
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
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
P. T. O.
[5] BCS-031
BCS–031
P. T. O.