Andhra University 2005 B.Tech Information Technology - Object Oriented Analysis and Design - Question Paper
Thursday, 02 May 2013 06:15Web
MODEL PAPER
B. Tech (IT) Degree exam
Second Year - 2nd Semester
OBJECT ORIENTED ANALYSIS AND DESIGN
Time: three hrs
Max Marks: 70
First ques. is Compulsory
ans any 4 from the remaining ques.
All ques. carry equal marks
ans all parts of any ques. at 1 place
1. (a) elaborate the advantages of an object-oriented paradigm?
discuss the terms
b) Generic Pointer
c) Abstract class
d) Reference Variable
e) Pure Virtual Functions
f) Protected
g) Function Overloading
2. (a) Write the syntax for the C++ switch statement
(b) create the equivalent of a 4 function calculator. The program should request the user to enter a number , an operator and a different number. If should then carry out the specified arithmetic operation : adding . subtraction , multiplying and dividing 2 numbers (use a switch statement to choose the operations). Finally display the outcome. The program should be interactive to ask the user for a different computation for which the response could be Y or N.
3. describe a class string to represent a string
(a) Overload ‘+=’ to concatenation string objects and to store outcome in 1st one.
(b) Overload ‘+’ to concatenate 2 string objects, a string object & a string constant, and a string constant & a string object.
(c) Overload all relation operators to compare string objects.
4. describe a class matrix and overload the operators +,-,*,<<,>> to add , subtract and multiply a integer and a matrix. Matrix and matrix.
5. (a) What is a friend function? discuss with examples the need for a friend function.
(b) What is static member of a class? discuss how static variables can be used to count the number of active objects of a class.
(c) Distinguish ranging from private, protected and public access classes.
6. (a) discuss multiple inheritance with the example.
(b) discuss hoe constructors are handles in multiple inheritance.
7. (a) How to implement run time polymorphism? discuss by giving suitable example.
(b) discuss about file handling in C++.
8. (a) explain with necessary examples fault handling and exception handling in C++.
(b) describe a template class for a vector. Overload the needed operators. Also overload ‘=’ for vector assignment.
Earning: Approval pending. |