How To Exam?

a knowledge trading engine...


Anna University Chennai 2005 B.E Computer Science CS 237-OBJECT ORIENTED PROGRAMMING - Question Paper

Monday, 25 February 2013 12:10Web

B.E/B.Tech DEGREE EXAMINATION,APRIL/MAY 2005
CS 237-OBJECT ORIENTED PROGRAMMING
PART A
1.Why is OOP methodology considered to be the better approach for real life problems?
2.What are the use of pointers in C++?
3.How do objects interact?
4.What is the differences ranging from a constructor and destructor?
5.Give atleast 2 examples of compile time polymorphism.
6.Why is the derived class constructor called before the base class
Constructor?
7.Give the syntax of declaring a function template.
8.What are input and ouput streams?
9.What are the 3 types of class members?
10.What is meant by member access modifiers?
PART B
11 (i) Write a program that generates a template class by which 1 can perform integer kind data addition and float kind data addition also.
(ii) How are unusaul fault conditions avoider using C++?
12(a) elaborate the elements of object oriented programming? explain them in detail.
(b) elaborate the different data kinds allowed in C++? provide 1 example for every kind.
13 (a) (i) Using the concept of function overloading,write a program in C++ to obtain the maximum of 3 integers and 3 float numbers
(ii) Which are the C++ operators which cannot be overloaded.
14.(a) (i) Write a program which initialised 10 and 200 to member data and then compute the sum of these.
(ii) Write a program which reads a complex number copy that into a different. Use copy constructor for writing program.
(b) (i) What is the function of this pointers?
(ii) What do you understand by static member and static function? How to declare them?
15.(a) (i) Specify the accesss modifiers of the class members.
(ii) provide the general form of an interface and how is it implemented.
(b) (i) provide 2 parts of method declaration. How is a static method invoked? When will the method complete execution and return to the caller? How will methods return more than 1 result?
(ii) Write a program to calculate the quantity of a box.



( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER Anna University Chennai 2005 B.E Computer Science CS 237-OBJECT ORIENTED PROGRAMMING - Question Paper