Wednesday, 11 December 2013

OBJECT ORIENTED PROGRAMMING(OOPS) NOVEMBER/DECEMBER 2011 ANNA UNIVERSITY QUESTION PAPER NOV/DEC 2011 | ANNA UNIVERSITY NOV/DEC 2011 MODEL QUESTION PAPER

OBJECT ORIENTED PROGRAMMING(OOP) NOVEMBER/DECEMBER 2011 ANNA UNIVERSITY QUESTION PAPER NOV/DEC 2011 | ANNA UNIVERSITY NOV/DEC 2011 MODEL QUESTION PAPER

OBJECT ORIENTED PROGRAMMING(OOP) NOVEMBER/DECEMBER 2011 ANNA UNIVERSITY QUESTION PAPER NOV/DEC 2011 | ANNA UNIVERSITY NOV/DEC 2011 MODEL QUESTION PAPER
B.E./B.Tech. DEGREE EXAMINATION, NOVEMBER/DECEMBER 2011.
Common to B.E. Computer Science and Engineering / B.Tech. – Information
Technology
Third Semester
141303 — OBJECT ORIENTED PROGRAMMING
(Regulation 2010)
Time : Three hours Maximum : 100 marks
Answer ALL questions.
PART A — (10 ´ 2 = 20 marks)
1. What is the difference between a local variable and a data member?
2. Explain the purpose of a function parameter. What is the difference between a
parameter and an argument?
3. Explain the multiple meanings of the operators << and >> in C++ and their
precedence.
4. What is a copy constructor?
5. What is a Function templates? Explain.
6. List five common examples of exceptions.
7. Give the use of protected access specifier.
8. Give the difference between virtual function and pure virtual function.
9. List the file-open modes.
10. What are the three standard template library adapters?


PART B — (5 ´ 16 = 80 marks)
11. (a) Write brief notes on Friend function and show how Modifying a Class’s
private Data With a Friend Function.
Or
(b) Write a C++ program that
(i) calculates and prints the sum of the integers from 1 to 10
(ii) to calculate x raised to the power y.
12. (a) Write a program to overload the stream insertion and stream extraction
operators to handle data of a user-defined telephone number class called
Phone Number.
Or
(b) (i) Explain ‘+’ operator overloading with an example. (8)
(ii) Explain type conversion with suitable example. (8)
13. (a) Define a DivideBy Zero definition and use it to throw exceptions on
attempts to divide by zero.
Or
(b) Write a C++ program to demonstrate function template to print array of different types.
14. (a) Explain different types of inheritances.
Or
(b) Demonstrate runtime polymorphism with an example.
15. (a) Write a C++ program that maintains a bank’s account information. The
program adds new accounts, deletes accounts in a text file. Assume that a
file credit.dat has been created and the initial data has been inserted.
Or
(b) Write brief notes on Standard template Library and Standard Library
container classes. (16)

Anna University Results Nov Dec 2013 UG Results 2014 for 1st,3rd,5th,7th Semester

Anna University Results Nov Dec 2013 UG Results 2014 for 1st,3rd,5th,7th Semester   Nov Dec 2013 UG Anna University  Exams  Results 201...