BCA 3 Semester Exam 2014 Object-Oriented Programming Using C++ Code-303301
BCA 3 Semester Exam 2014 Object-Oriented Programming Using C++ Code-303301
onlineqp.com
Instructions:
(c) Which of the following access specifies is used in a class definition by default?
(d) What happens when a class with parameterized constructor and having no default
arguments constructor?
(e) If the programmer does not explicitly provide a destructor, then creates an empty
(i) What does derived class not inherit from the base class?
(j) Which other keyword are also used to declare the class other than class?
(c) Write syntax for overloading extraction and insertion operator with friend function.
(d) Explain the mechanism for accessing private member of the base class using pointers.
3. (a) What is function overloading? What are the rules for defining overloaded functions? Precautions
(b) Write a program in C++ to use bit fids with cases display the contents of the objects. 6
4. (a) How are the constructor and destructor called explicitly? What is the difference between
their calling methods? 6
(b) Write a program in C++ to pass an object to constructor and carry out copy constructor
5. What is operator overloading? Explain the conversion of basic data type to class type and class
type to basic type with appropriate example. 12
(b) Write a program in C++ to declare class X Y and Z. Each class contains one character array as
a data member. Apply multiple inheritance. Concatenate strings of class X and Y and store it in Z.
Show all the three strings. Use constructor and destructor. 6
7. (a) What are templates? Explain its need. How can normal function be declared as template function?
(b) Write a program in C++ to use exception handing with constructor and destructor.
akubihar.com 6*2=12