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 consisting of TEN questions ca
TWO marks each.
2. SECTION-B
contains SIX questions carrying TEN marks each and st
has to attempt any FOUR questions.
SECTION-A
l.
Write briefly :
(a) What is Pointer Arithmetic?
(b) What are Arrays?
(c) What are Inline Member Functions?
(d) What is a Friend Function?
(e) What is the main advantage of
recursion?
(f) What is Multiple Inheritance?
(g) What is Function Overloading?
(h) What is Early Binding?
(i) What are the types of files supported
by C++ ?
(j) Name the various binary file
operations.
SECTION-B
2.
Explain the following types of functions in detail:
(i) Local or
private functions
(ii) Member
functions
(iii) Friend
functions
(iv) In-line
functions
(v) Constructor
functions.
3.
Write a program to find the day of the week using simple if and switch
statements.
4.
What is the role of file pointer in a C++ program?
5.
Define a class "ACCOUNT". Include following members :
Data Members: Name of Depositor, Account
No., Type of Account,
Balance Amount.
Member Function: To assign initial values,
deposit amount, withdraw after
checking balance, To display name and
balance. Write main Program to
test the program for 10 customers.
6.
What is function overloading? Write a program in C++ which has a
Function add that is able to concatenate
two strings, if values passed are
strings and can perform addition, if values
are numbers.
7.
What is a constructor? What are the rules for defining a constructor?
0 comments:
Post a Comment
North India Campus