0% found this document useful (0 votes)
41 views

Oops Nov 2011

This document contains questions from a B.E./B.Tech. degree examination in Object Oriented Programming. It asks students to define key concepts in OOP like the differences between local variables and data members, function parameters and arguments, and overloaded operators. It also asks students to provide examples of concepts like copy constructors, function templates, exceptions, access specifiers, virtual functions, and standard template library adapters. The document tests students' understanding of OOP concepts and their ability to apply them to solve problems involving things like calculating sums, powers, overloading operators, throwing exceptions, templated functions, inheritance, and polymorphism. It asks students to write programs demonstrating various OOP features like a banking account program that reads

Uploaded by

VoohaChitta
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
41 views

Oops Nov 2011

This document contains questions from a B.E./B.Tech. degree examination in Object Oriented Programming. It asks students to define key concepts in OOP like the differences between local variables and data members, function parameters and arguments, and overloaded operators. It also asks students to provide examples of concepts like copy constructors, function templates, exceptions, access specifiers, virtual functions, and standard template library adapters. The document tests students' understanding of OOP concepts and their ability to apply them to solve problems involving things like calculating sums, powers, overloading operators, throwing exceptions, templated functions, inheritance, and polymorphism. It asks students to write programs demonstrating various OOP features like a banking account program that reads

Uploaded by

VoohaChitta
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

1

www.Vidyarthiplus.com

Question Paper Code :

42

Reg. No. :

13083

19

B.E./B.Tech. DEGREE EXAMINATION, NOVEMBER/DECEMBER 2011.

Common to B.E. Computer Science and Engineering / B.Tech. Information


Technology
Third Semester

42

141303 OBJECT ORIENTED PROGRAMMING


(Regulation 2010)
Time : Three hours

Maximum : 100 marks

Answer ALL questions.

19

PART A (10 2 = 20 marks)

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.

21
9

42

1.

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?

94

6.

www.Vidyarthiplus.com

www.Vidyarthiplus.com

11.

(a)

42

PART B (5 16 = 80 marks)

Write brief notes on Friend function and show how Modifying a Classs
private Data With a Friend Function.
Or

(a)

19

12.

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.

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.

42

(b)

Or

13.

(a)

(i)

Explain + operator overloading with an example.

(8)

(ii)

Explain type conversion with suitable example.

(8)

19

(b)

Define a DivideBy Zero definition and use it to throw exceptions on


attempts to divide by zero.
Or

Write a C++ program to demonstrate function template to print array of


different types.

(a)

Explain different types of inheritances.

15.

(a)

94

(b)

Or

Demonstrate runtime polymorphism with an example.

21
9

(b)

42

14.

(b)

Write a C++ program that maintains a banks 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
Write brief notes on Standard template Library and Standard Library
container classes.
(16)

www.Vidyarthiplus.com

13083

You might also like