ANNA UNIVERSITY- COMBATORE
B.E./ B.TECH. DEGREE EXAMINATION - JUNE 2009.
ELECTRICAL & ELECTONICS ENGG. - FOURTH SEMESTER
OBJECT ORIENTED PROGRAMMING Question Papers
PART-A
Answer all questions. (20*2=40)
1. What is object oriented programming ? How is it different from the procedure oriented programming?
2. How is dynamic binding achieved in c++.
3. With an example explain an abstract data type.
4. What is the purpose of malloc and free operators.
5. what is the default access mode for class members.
6. State the mechanism of passing objects to a function.
7. How does a constructor differ from a normal function.
8. State why a destructor is used when developing an application in c++.
9. What are the limitations of multiple inheritance.
10. Justify the need for virtual functions in c++.
11. What are the advantages of abstract classes.
12. List the operators that cannot be overloaded in C++.
13. Compare the important features of c++ and Java.
14. Define JVM.
15. List the four integer types supported by Java.
16. Distinguish between overloading and overriding.
17. List the four categories of visibility addressed by Java for class members.
18. What is the major difference between interfaces and classes.
19. What is a package.
20. Discuss the package access protection
PART-B
Answer any five. (5*12=60)
1. a) Discuss the non-object oriented features of c++ with programmng examples. (8) b) State the merits and demerits of object oriented methodology. (4)
2. a) Explain copy constructor with suitable c++ coding. (8) b) What are the differences between default and parameterized constructors. (4)
3. With relevant examples discuss the different types of inheritance supported by c++. (12)
4. a) Write a c++ program to overload the assignment operator. (8) b) List out the rules for overloading operators. (4)
5. a) Explain method overloading with suitable Java coding. (8) b) Does Java support multiple inheritance?. Discuss. (4)
6. Write a Java program to create the class Rectangle and Square. Compute their area and compare the areas. List the features of OOP used and explain them. (12)
7. Explain the various forms of inheritance implementation. (12)
8. What is the purpose of using packages? How do you create user-defined package? Give
an example. (12)
0 comments :
Post a Comment