(CC-203) (Object Oriented Concepts and Programming)
(CC-203) (Object Oriented Concepts and Programming)
: _______________
DC-101
December-2018
B.C.A., Sem.-III
CC-203 : Object Oriented Concepts and Programming
(New Course)
Time : 2:30 Hours] [Max. Marks : 70
ir
(2) Write a short-note on Function Overloading in C++.
(B) Answer the following : (Any four) 4
(1) Give the full from of POP.
ls
(2) What is the data abstraction ?
(3) How to give the comments in C++ ? Give small example of it.
(4) What is the main difference between public and private access specifier in
ea
C++ ?
(5) Define Class.
(6) A/An ________ is an instance of class.
(a) object (b) variable
(c) keyword (d) None of these
R
2. (A) (1) Explain Dynamic Memory Allocation and De-allocation in C++ with
example. 7
G
4. (A) (1) How to convert a data of basic type to class type ? Explain with example. 7
ir
(2) Write a simple program to demonstrate class template. 7
OR
(1) Write a program to concatenate two string by overloading binary ‘+’ operator.
ls
(2) Explain the function template with multiple parameters using example.
(B) Answer the following : (Any three) 3
(1) What is the purpose of istream and ostream class ?
(2) What is the use of put() function for text mode output operation ?
ea
(3) Define the get() and getline() functions for text mode input operations ?
(4) What is class template ?
(5) Operator overloading is a/an _________ polymorphism.
(a) compile time (b) run time
R
DC-101 2
DC-101
December-2018
B.C.A., Sem.-III
CC-203 : Object Oriented Concepts and Programming
(Old Course)
Time : 2:30 Hours] [Max. Marks : 70
ir
(2) Write a short-note on Inline Function in C++.
(B) Answer the following : (Any four) 4
(1) Define Object.
ls
(2) What is Encapsulation ?
(3) _______ are reserved words whose meaning is already been defined for a
particular language.
ea
(a) Keywords (b) Variables
(c) Arguments (d) None of these
(4) What is ‘this’ pointer ?
(5) Which operator is known as insertion operator ?
(6) What is ‘bool’ data type in C++ ?
R
OR
(1) What is Friend Class ? Explain with example.
(2) Write a short-note on Copy Constructor with example.
@
ir
4. (A) (1) Write a program of Overload the Binary Operator +, –, *, and / using friend
Functions. 7
(2) Explain Nested Class Templates with example. 7
ls
OR
(1) Write a C++ program to initialize the data member of base class using the
constructor of derived class.
ea
(2) How to convert a data of class type to basic type? Explain with example.
(B) Answer the following : (Any three) 3
(1) Which are the operators that can't be overloaded ?
(2) What is operator function ?
R
___________
DC-101 4