Roll
No.
Total
No. of Questions : 07
B.Sc. (IT) (Sem.–3rd)
PROGRAMMING IN C++
Subject Code : BS-205
Paper ID : [B0411]
Time
: 3 Hrs.
INSTRUCTION
TO CANDIDATES :
1. Section –A,
is Compulsory.
2. Attempt any
four questions from Section-B.
Section –A
1.
Explain the following:
a.
What do you mean by data
hiding? Explain.
b.
What are the merits of single
inheritance?
c.
Differentiate between seekg()
and tellg().
d.
What are the different forms of
delete?
e.
Differentiate between call by
reference and call by value.
f.
Why there is a need of static
variable in a class?
g.
What do you mean friend
function? When is friend function necessary to be used?
h.
Write note on header files.
i.
Write note on this operator.
j.
Show how to allocate a float
and a char by using new.
Section –B
2.
Explain the following w.r.t.
object oriented paradigm:
a.
Private
b.
Public
c.
Protected
b. What are the advantages of using object
oriented programming over procedure oriented programming? Explain
3. What is constructor? Is it mandatory to
use constructor in a class? How do we
invoke a constructor fiction? Can we overload destructor?
4.
Describe the syntax of multiple inheritance. When such an inheritance is
used? Explain with a suitable program.
5.What do you mean by function overloading?
Explain the concept with a suitable program.
6. Explain the concept of dynamic binding.
Implement the concept using ritual factions with C++ program.
7. Write a program in C++ to illustrate the
u e of inline member function. Also discuss the similarity and dissimilarity
macro an inline function.
0 comments:
Post a Comment
North India Campus