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

Object Oriented Programming Jan 2017 (2010 Scheme)

This document contains questions from a B.E. Degree Examination in Object Oriented Programming using C++. It covers fundamental concepts like data types, functions, classes, inheritance and polymorphism. It has 8 questions with subparts on topics such as basic OOP concepts, pointers, constant qualifier, function overloading, class members, constructors/destructors, operator overloading, inheritance, virtual functions, this pointer and file I/O. Students are required to attempt 5 full questions selecting at least 2 from each part.

Uploaded by

Shankar M
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)
29 views

Object Oriented Programming Jan 2017 (2010 Scheme)

This document contains questions from a B.E. Degree Examination in Object Oriented Programming using C++. It covers fundamental concepts like data types, functions, classes, inheritance and polymorphism. It has 8 questions with subparts on topics such as basic OOP concepts, pointers, constant qualifier, function overloading, class members, constructors/destructors, operator overloading, inheritance, virtual functions, this pointer and file I/O. Students are required to attempt 5 full questions selecting at least 2 from each part.

Uploaded by

Shankar M
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

For More Question Papers Visit - www.pediawikiblog.

com

us lOEE664

Sixth Semester B.E. Degree Examination, Dec.2016/Jan.2017


Object Oriented Programming using C++

Time: 3 hrs. Max. Marks: 100

m
Note: Answer any FlVEfull questions, selecting
atleast TWO questions from each part.

co
PART-A
1 a. What are the basic concepts of object oriented programming? Explain any four concepts
briefly. (10 Marks)

g.
b. List a few areas of applications of OOPS technology. (04 Marks)
c. Find errors, if any, in the following C++ statements and write correct statement.
i) cout'< "Enter n:";
cin »n

lo
if(n < 0)
cout'< "n is negative. Try again";
cin »n;
... else
cout< "o.k =" «n;
ii) #include < iostream> ib
ik
using namespace standard :
int main
{ //prints "Hello, world!" :
w
cout-c "Hello, world !\n"
return 0;
} (06 Marks)
ia

2 a. What is a data type? List the various data types available in C++. (05 Marks)
b. Explain briefly the pointer variables with example. (05 Marks)
ed

c. What is the need for constant qualifier? Explain briefly the constant qualifier. (05 Marks)
d. Explain the new and delete operators with examples. (05 Marks)

..•
oJ a. What is function overloading? Explain with an example. (07 Marks)
.p

b. What is an inline function? Explain its syntax. Discuss the situation, where, inline function
may not work. (07 Marks)
" . c. Write a C++ program to read integers andprints their cubes until the user inputs the value O.
w

...~.-; '"

Pass the each integer read ya~uetcdh: .~c~ion "cube'; to find cube of a number. (06 Marks)
,"'.. ..•. ! ~. .
. .-
4 a. Explain the different class member access specifier. (06 Marks)
w

b. What are static data members? List the characteristics of static data member. (06 Marks)
c. Create a class with member functions that read two integers, find largest among them and
2 display the largest integer. Write a main program to test the class. (08 Marks)
w

o
;z

PART-B
5 a, What are constructors and destructors? List some characteristics of both. (12 Mar'ks)
b. Explain the copy constructor, with an example. (04 Marks)
c. List the operators, which cannot be overloaded. (04 Marks)
10f2
For More Question Papers Visit - www.pediawikiblog.com
For More Question Papers Visit - www.pediawikiblog.com
lOEE664

6 a. What is an operator overloading? Discuss the rules for overloading operators. (10 Marks)
b. Write a C++ program to overload binary operator '+' \ to add two complex numbers and
display the result. (10 Marks)

7 a. What is inheritance? Explain different types of inheritance with the help of a block diagram.
(12 Marks)

m
b. What is a virtual base class? Explain necessity of class virtual. (08 Marks)

8 a. What is 'this' pointer? Explain its significance. (05 Marks)

co
b. List the rules for virtual functions. (05 Marks)
c. Enumerate various manipulators in C++ along with their meaning. (05 Marks)
d. Describe the various file mode options available. (05 Marks)

g.
*****

lo
ib
ik
w
ia
ed
.p
w
w
w

20f2

For More Question Papers Visit - www.pediawikiblog.com

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy