You are on page 1of 0

USN

Time: 3 hrs.
Third Semester B.E. Degree Examination, June/July 2013
4a.
b.
c.
E
E
tje
-*l
'=+
Y!,
Cz
tro-
orro
z
o
1a.
b.
2a.
b.
c. What is paramterized constructor? Explain the different rrhthods ofpassing arguments to the
Max. Marks:100
(08 Marks)
(04 Marks)
overloading is
(08 Marks)
(08 Marks)
(04 Marks)
(08 Marks)
(08 Marks)
(04 Marks)
latitude values by
(08 Marks)
(08 Marks)
5a.
b.
6a.
b.
c.
d.
7a.
b.
c.
8a.
b.
c.
d.
Object Oriented Programming with G++
Note:. Answer FIVE
full
questions, selecting
atleast TWO questions
lfrom
each part.
PART-A
What is a statement? Explain
jump
statements with syntax.
parameterized
constructor with example.
program to find sum of2 numbers, using fiiend.fulctions.
What are generic
funcrions? Explain with synrax.
Write a C++ program to demonstrate the addition of two longitude and
overloading operator.
What is inheritance? Explain the s1'ntax of defining derived classes.
function.
c. What is function overloading? Explain with example, why function
imporlant?
What is class? Explain the syntax of class.
Mention the itiritrictlons thai are placed
on static member functions.
What is inline function? Write a C++ program to find maximum of 2 numbers using inline
10cs36
3 a. What are friend functions? What are the advantages of using friend functions? Write a C++
b.
c.
What is copy constructor? When the copy conslructor is employed? Explain with syntax.
Explain protected base
-
class inheritance, with suitable example.
[3:
il:ll3
PART-B
Explain when constructors and destructors are executed? Explain the order of invocation of
constructors and destructors in multilevel inheritance with a suitable program. (t0 Marks)
Explain how to pass parameters to base
-
class constructors, with suitable program.
(10 Marks)
What is virtual function? What is the use of virtual function? Write a C++ program to
demonstrate calling ofvirtual function tlrough a base class relevance.
110
Marks;
What is pure virtual function? Explain with syntax. (04 Marks)
What is an abstract class? How it supports run-time polymorphism? (02 Marks)
Mention the diflerences between early binding and late binding. (04 Marks)
what are streams in c++? Mention four built
-
in streams that are automatically opened
when a C** program beings execution.
(06 Marks)
Explain width(
),
precision(
)
and fil(
)
functions. (06 Marks)
What are I/O manipulators? List and mention the purpose of C++ I.O manipulators.
(08 Marks)
For More Question Papers Visit - www.pediawikiblog.com
For More Question Papers Visit - www.pediawikiblog.com
www.pediawikiblog.com

You might also like