Test Papers of Andhra University
B Tech Computer Science & Engineering
Object Oriented Programming
(CSE) Degree Examination
Second Year – Second Semester
Effective from the admitted batch of 2004-2005
Time: 3 hrs
Max Marks: 70
First Question is Compulsory
Answer any four from the remaining questions
All Questions carry equal marks
Answer all parts of any question at one place
1. Answer the following
a) Write about Data Encapsulation.
b) What is Dynamic binding?
c) Give an example of an Inline function.
d) When do you use Friend functions?
e) What are Pure virtual functions?
g) Write about Garbage collection.
2. a)Explain concepts of Object Oriented Programming.
b) Discuss Operator overloading concept with complex number addition example.
3. a) Explain all kinds of inheritance with examples.
b) Write a program using class templates to sort an array of integers and an array of float numbers.
4. a) What is polymorphism? Explain compile-time polymorphism.
b) Write a program using virtual functions Your program contains two classes. Base class by name college, derived class by branch derived both will contain a function display() that displays their respective details.
5. a) Write a short note on
i) Class diagrams ii) State chart diagrams.
b) What is UML? Discuss interaction diagrams.
6. a) Discuss Exception Handling mechanism in C++.
b) Write a program for file copying using file streams in C++.
7. a) Write a short notes on File Handling in Java.
b) Write a program that implements an interface containing methods describing student information.
8. a) Define multi-threading. How threads are created in JAVA?
b) What is a package? Write a program that shows scope of all kinds of variables inside and outside a package.