How To Exam?

a knowledge trading engine...


Gujarat University 2003 B.C.A Computer Application Object Oriented Methods & Programming - Question Paper

Sunday, 12 May 2013 11:00Web

Time : three Hours Total Marks : 50

Instructions : (1) Write new ques. on new page.
(2) Draw diagrams wherever necessary.

1 Do as directed : (any ten) 10

(i) What is insertion operator ?
(ii) What is bottom-up approach of programming ?
(iii) discuss reference variable.
(iv) What is static data member ?
(v) discuss private and protected access modifiers
(vi) discuss this pointer
(vii) What is difference ranging from subsequent 2 statements ?
(a) Cin >> C;
(b) Cin.get (c);
(viii) Friend function cannot be used to overload operators.
(True/False)
(ix) Defining a derived class requires a few modifications in base
class. (True/False)
(x) We can pass arguments to the destructor. (True/False)
(xi) A constructor is executed automatically when an object
is ______________.
(xii) ______________ function return actual when input or
output operation is fail.
2 ans the subsequent : (any five) 10
(i) When do you make a virtual function pure ?
(ii) explain the syntax of set( ) function.
(iii) When do you make a class abstract ?
(iv) How many arguments are needed in the definition
of an overloaded binary operator ?
(v) discuss constructor overloading with example.
(vi) discuss Memory allocation for objects with diagram.
(vii) discuss inline function with example.

3 (a) Write short notes : (any two) 6
(i) Friend function
(ii) kind conversion
(iii) Function prototyping.
(b) Differentiate the subsequent : (any two) 4
(i) Call by reference and Call by value
(ii) Protected visibility mode and Public visibility
mode.
(iii) Compile time binding and Runtime binding.
4 Attempt any 2 : 10
(i) A file contains a list of telephone numbers in the
subsequent form :
Tina 12345
Ena 67891
Deeka 23456
-------- -------
The names contain only 1 word and the names and
telephone numbers are separated by white spaces.
Write a program to learn the file and output the list
in 2 columns. The names should be left-justified and
the numbers right-justified.
(ii) describe class time that has hours and minutes as data
members. Overload + Operation that provide sum of two
time objects and > = operator to compare 2 time
objects.
(iii) presume that a bank maintains 2 types of accounts
for customers 1 called as savings account and the
other as current account. Create a class account that
store customer name, account number and kind of
account. From this derive the classes cur-account and
sar–account to make them more specific to their
requirements. Include necessary member function in
order to achieve the subsequent tasks.
(a) Accept deposit from customer and update the
balance.
(b) Display the balance.

5 Do as directed : (any five) 10
(i) Features of OOP (Object Oriented Programming)
(ii) discuss stages of Object Modelling Technique
(iii) discuss Link attributes with diagram
(iv) Differentiate instance diagram and class diagram
(v) Differentiate Aggregration and Generalization.
(vi) Differentiate multiple inheritance and multilevel
inheritance.
(vii) discuss Role Names with diagram.



( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER Gujarat University 2003 B.C.A Computer Application Object Oriented Methods & Programming - Question Paper