2009 BHARATHIAR UNIVERSITY B.C.A COMPUTER APPLICATION BACHELOR OF COMPUTER APPLICATION (BCA), NOV - 2009-C++ PROGRAMMING QUESTION PAPER

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 given 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 one 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 same 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? Explain.

Or

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

13. a. Briefly explain operator overloading.

Or

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

14. a. What are 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. Discuss 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. Define a class to represent a bank account. Data Members: Depositor name, Account number, Type 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. Explain overloading binary operators using friend function with example.

Or

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

19. a. Briefly discuss about pointers.

Or

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

20. a. Explain exception handling mechanism.

Or

b. Write a note on:
i. Creating an object
ii. Manipulating string objects
8.0 Mark(s)
KEYWORDS:2009 BHARATHIAR UNIVERSITY B.C.A COMPUTER APPLICATION BACHELOR OF COMPUTER APPLICATION (BCA), NOV - 2009-C++ PROGRAMMING QUESTION PAPER,BHARATHIAR UNIVERSITY,BHARATHIAR UNIVERSITY EXAM RESULTS,BHARATHIAR UNIVERSITY MBA,BHARATHIAR UNIVERSITY RESULTS,BHARATHIAR UNIVERSITY DISTANCE EDUCATION,BHARATHIAR UNIVERSITY SYLLABUS,BHARATHIAR UNIVERSITY MBA-CENTRE ,BHARATHIAR UNIVERSITY SCHEDULE OF EXAMINATIONS ,BHARATHIAR UNIVERSITY ADMISSION,BHARATHIAR UNIVERSITY COURSES,BHARATHIAR UNIVERSITY ACADEMIC, BHARATHIAR UNIVERSITY DEPARTMENTS,BHARATHIAR UNIVERSITY RESEARCH,BHARATHIAR UNIVERSITY MAIL,BHARATHIAR UNIVERSITY QUESTION PAPERS,BHARATHIAR UNIVERSITY COUNSELLING DATES,BHARATHIAR UNIVERSITY RE-EVALUATION RESULTS