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
Q1)
a) What are the uses of scope resolution
operator? Explain?
b)
What are the merits of private inheritance?
c)
What are the various file opening modes? List them.
d)
In what way a destructor is different from delete?
e)
Differentiate between reference variable and a pointer.
f)
What is the relevance of static variable in a class?
g)
What do you mean by pure virtual functions?
h)
Write note on inline function.
i)
Write note on recursion.
j)
Show how to allocate a double and an int by using new.
Section - B
Q2)
(a) Differentiate between call by reference and call by address.
(b)
What do you understand by object oriented Languages? Explain the features of
OOPs.
Q3) Write note
on Private, Public and protected access specifiers. Explain with the help of a
class Inventory and show how can we access the private member?
Q4) Develop a
Class Complex in C++. Class must use constructor overloading and use display and add function to show the
output and add two complex numbers respectively?
Q5) Describe
the syntax of multilevel inheritance. When such an inheritance is used? Explain
with a suitable program?
Q6) Write a
program in C++ to copy the content of one text file to another text file using
command line arguments?
Q7) What do you mean by operator overloading? Explain the concept
with overloading of arithmetic operators on any class of your choice.
0 comments:
Post a Comment
North India Campus