Punjab University 2009 B.A Comter Science B :- Object Oriented Programming (Using C++), : Part - II - Question Paper
Tuesday, 07 May 2013 04:10Web
B.A. 2nd Year
COMPUTER SCIENCE - PAPER : B
[Objective Oriented Programming (Using C++)]
Time Allowed:Three Hours Maximum Marks:67
Note: Attempt 5 ques. in all by selecting any 2 ques. every from
Sections-A and B. Section-C is compulsory.
SECTION-A
1. (a) Write features of an Object-Oriented Programming language?[Marks 7]
(b) How a system is analyzed and designed using object-oriented approach.[Marks 6]
2. (a) How do you layout the structure of a C++ program? discuss.[Marks 7]
(b) What are the different data-types supported by C++?[Marks 6]
3. (a) Write a program in C++ that adds 2 variables that may be strings
or numbers.[Marks 7]
(b) Define member function.How Private and Public member functions are
declared and accessed ? discuss.[Marks 6]
4. (a) Differentiate ranging from "Pass by Value" and Pass by Reference"
within 2 functions.[Marks 7]
(b) Compare and Contrast Constructor and Destructor.[Marks 6]
SECTION-B
5. (a) What do you mean by term "function overloading"? How a function
is overloaded ? discuss.[Marks 7]
(b) Describe different kinds of Inheritance.[Marks 6]
6. (a) How a derived class uses the functionality of a base class? discuss
with suitable example.[Marks 7]
(b) Draw difference among Private, Public and Protected modes.[Marks 6]
7. (a) How the nesting of classes is done in C++ ? discuss.[Marks 7]
(b) Draw difference ranging from single and multilevel Inheritance through a
C++ program.[Marks 6]
8. Write an algorithm for :
(a) Sorting a list of n-elements.[Marks 7]
(b) Implementing linked list.[Marks 6]
SECTION-C
9. (i) Define Object.
(ii) Define Data-hiding.
(iii) Define Encapsulation.
(iv) What are I/O Streams ?
(v) What are visibility modes ?
(vi) What is multilevel inheritance ?
(vii) What is Polymorphism ?
(viii) Define Tree with its properties.
(ix) How Pointers to object are declared ?
(x) Define data structure.[Marks 10x1.5=15]
Earning: Approval pending. |