Punjab University 2008 B.A Comter Science B :- Object Oriented Programming (Using C ), : Part - II - Question Paper
Tuesday, 07 May 2013 02:20Web
B.A. 2nd Year
COMPUTER SCIENCE - PAPER : B
[Objective Oriented Programming (Using C++)]
Time Allowed:Three Hours Maximum Marks : 75
Note: Attempt 5 ques. in all, selecting 2 ques. every from
Sections-A and B and Section-C is compulsory.All ques. carry equal
marks.
SECTION-A
1. Differentiate ranging from subsequent using suitable examples :
(a) Call by value and call by reference.
(b) Constructor and destructor.
2. What do you understand by inline function ? What is the difference ranging from
inline function and preprocesseor macro ?
3. (a) What do you understand by a class ? How does it accomplish data
hiding ? discuss.
(b) What are the main steps in object oriented analysis ?
4. (a) What do you understand by polymorphism ? Differentiate ranging from
runtime and compiletime polymorphism ?
(b) What is copy constructor ? What is the use of it ? discuss using
suitable example.
SECTION-B
5. What does inheritance mean in C++ ? elaborate the various forms of
inheritance ? provide an example for every.
6. Write an object oriented program in C++ to implement the queue data
structure.
7. What do you understand by function overloading ? Write an object oriented
program in C++ to calculate the area of a triangle, a rectangle and a circle
using function overloading.
8. Differentiate ranging from Privately derived and Publicly derived classes.
SECTION-C
9. (a) What is the difference ranging from a struct and a class ?
(b) What do you understand by default argument in a function ?
(c) What is an abstract class ?
(d) Discuss the visibility of protected members of a class.
(e) What is a tree data structure ?
(f) What is reusability ?
(g) What are the special characteristics of constructor overloading ?
(h) What is an array ?
(i) What is operator overloading ?
(j) What is a virtual function ?
Earning: Approval pending. |