How To Exam?

a knowledge trading engine...


Andhra University 2007 B.E Computer Science Object Oriented Programming - Question Paper

Wednesday, 01 May 2013 05:45Web

Fourth Semester B.E Degree exam
(Common to CS and IS)
Model ques. Paper I
06CS44 Object Oriented Programming with C++
Note: ans any 5 Full questions, selecting at lowest 2 ques. from every PART
Time: three Hours Maximum marks : 100
PART -A
1. (a) What is the need for structures in C? discuss with suitable example. (6)
(b) What is object oriented programming? Compare Object Oriented with Procedure
Oriented Programming? (6)
(c) What is an inline function? What is the advantage of having a function inline? Write a
C++ program to obtain maximum of 2 numbers using inline functions. (8)
2. (a) discuss the use of this pointer with an example. (5)
(b) elaborate friend classes? discuss with example. (5)
(c) Write a C++ program to sort the list of students depending on their roll Numbers
(10)
3. (a) discuss how new and delete operators manage memory allocation / deallocation
dynamically? (6)
(b) What is a constructor? discuss various kinds of Constructors with examples. (7)
(c) Write a C++ Program to generate Fibonacci series using copy constructors (7)
4. (a) What is inheritance? discuss various kinds of inheritance with examples. (10)
(b) Write a note on visibility of member functions based on private and protected
derivations (5)
(c) discuss the order of invocation of constructors and destructors with examples. (5)
PART B
5. (a) discuss virtual functions and write a C++ program to demonstrate dynamic
polymorphism. (10)
(b) Distinguish ranging from virtual function and pure virtual functions. (5)
(c) Write a note on I/O stream classes of C++. (5)
6. (a) Write a C++ program to perform addition and multiplication of 2 complex
numbers by overloading ‘+’ and ‘*’ operators (10)
(b) discuss various file pointer manipulation functions in C++. (10)
7. (a) What is operator overloading? Write a C++ program to compare 2 data
values representing distances in feet and inches using operator overloading (10)
(b) discuss new style cast operators in C++. (10)
8. (a) Write a C++ program for sorting a list of integer, floating point numbers and
characters by bubble sort technique using template functions. (10)
(b) What is exception handing and how is it treated in C++. (10)
Fourth Semester B.E Degree exam
(Common to CS and IS)
Model ques. Paper II
06CS44 Object Oriented Programming with C++
Note: ans any 5 Full questions, selecting at lowest 2 ques. from every PART
Time: three Hours Maximum marks : 100
PART- A
1 (a) With examples compare structures in C with classes in C++. (4)
(b) What is function overloading? elaborate the advantages of overloading a
function? Write a program in C++ to overload the function add(s1,s2) where
S1 and s2 are integers and floating point values. (10)
(c) With an example explain the significance of function prototyping. (6)
2 (a) what is the role played by private and public access specifiers in case
of structures and classes? discuss with suitable examples. (8)
(b) discuss with an example how 1 can bridge 2 classes using friend function. (6)
(c) Write a note on Nested class. (6)
3. (a) What is Dynamic Memory Management? Write a C++ program
to create array of objects at runtime. (12)
(b) Is overloading of constructors and destructors possible? Justify your answer? (8)
4. (a) What is reusability? How do you achieve this in c++? (6)
(b) elaborate the various ambiguities involved in multiple inheritance
and how they are resolved? (8)
(c) Write a C++ program to use a base class pointer to point to an
object of derived Class without the need for kind casting? (6)
PART B
5 (a) elaborate virtual functions? discuss the mechanism of virtual functions. (8)
(b) With a neat diagram discuss the class hierarchy for stream handling in C++. (6)
(c) What is pure virtual function? discuss with an example. (6)
6. (a) Distinguish ranging from text and binary files in C++. (6)
(b) What is operator overloading? discuss its advantages. Write a C++
program to overload ‘+’ operator to concatenate 2 string variables. (10)
(c) elaborate the rules for overloading operators? (4)
7. (a) Write a C++ program to create a class ‘String’ by overloading assignment
operator. (8)
(b) discuss how to overload pointer to member operator in C++. (4)
(c) Write a note on (i) static cast operator (ii) dynamic cast operator. (8)
8. (a) discuss RTTI in detail. (6)
(b) Write a C++ program using function templates for accepting integer
and floating values to perform stack operation. (8)
(c) What is Exception handling? discuss try, throw , catch constructs in
C++ (6)


( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER Andhra University 2007 B.E Computer Science Object Oriented Programming - Question Paper