How To Exam?

a knowledge trading engine...


Bharathiar University 2009 B.C.A Computer Application Bachelor of , - -C++ Programming - Question Paper

Saturday, 23 March 2013 11:35Web

Bachelor of Computer Application (BCA), NOV - 2009

C++ Programming


1. The input operator is ____________.
a. <<
b. >>
c. ?
d. ::
1.0 Mark(s)
2. Reference variable must be initialized at the time of _______________.
a. Declaration
b. Compilation
c. Runtime
d. Definition
1.0 Mark(s)
3. Initial value of static variable is _______________ when the object is created.
a. 0
b. 1
c. Any value provided as input
d. None of these
1.0 Mark(s)
4. Friend function cannot be used for _______________.
a. =
b. []
c. ?
d. All of the above
1.0 Mark(s)
5. An abstrct class is 1 that is not used to create _________________.
a. Class
b. Objects
c. Functions
d. Variables
1.0 Mark(s)
6. If both the base class and derived classes use the identical name, base class is declared as _________________.
a. Pointer
b. Virtual
c. Friend
d. This
1.0 Mark(s)
7. To declare a pointer to a member of a class _________________ operator is used.
a. *
b. ? *
c. :: *
d. * ::
1.0 Mark(s)
8. Runtime polymorphism uses _____________ functions.
a. Virtual
b. Friend
c. Inline
d. None of these
1.0 Mark(s)
9. The errors that are caused by events beyond the control of the program are called _____________ exception.
a. Synchronous
b. Asynchronous
c. Syntactic
d. Logical
1.0 Mark(s)
10. _____________ constructor is used for creating a string objects from other string object.
a. String ();
b. String (const chat * str);
c. String (const string *str);
d. String (const string & str);
1.0 Mark(s)

11. a. List down the advantages of OOP.

Or

b. Write a note on looping statements in C++.
5.0 Mark(s)

12. a. How the member functions can be defined? discuss.

Or

b. What is friend function? elaborate the merits and demerits of using friend function?
5.0 Mark(s)

13. a. Briefly discuss operator overloading.

Or

b. Write a note on virtual base classes with examples.
5.0 Mark(s)

14. a. elaborate the advantages of using new operators as compared to the function malloc()?

Or

b. List down the rules for virtual functions.
5.0 Mark(s)

15. a. Write a note on function templates.

Or

b. How to update a file?
5.0 Mark(s)

16. a. explain about the basic concepts of object-oriented programming.

Or

b. Write a note on formatted console I/O operations.
8.0 Mark(s)

17. a. describe a class to represent a bank account. Data Members: Depositor name, Account number, kind of account balance. Member Functions: Assign initial value, Deposit an amount, Withdraw after checking balance, Display.
Write a Program in C++.

Or

b. Write note on:
i. Parameterized constructor
ii. Copy constructor
iii. Destructor
8.0 Mark(s)

18. a. discuss overloading binary operators using friend function with example.

Or

b. What is Inheritance? discuss multilevel, multiple and hierarchical inheritance.
8.0 Mark(s)

19. a. Briefly explain about pointers.

Or

b. What is polymorphism? discuss and provide an example for run-time polymorphism.
8.0 Mark(s)

20. a. discuss exception handling mechanism.

Or

b. Write a note on:
i. Creating an object
ii. Manipulating string objects
8.0 Mark(s)



( 6 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER Bharathiar University 2009 B.C.A Computer Application Bachelor of , - -C++ Programming - Question Paper