Roll no....................
Total No. of Questions: 07]
MBA(Sem.-3rd
)
PROGRAMMING IN
C/C++
SUBJECT CODE:
MB-981
Paper ID: [C0163]
TIME: 03 Hours
Instruction to Candidates:
1)
Section – A is
Compulsory.
2)
Attempt any Four
questions form Section – B.
Section - A
1.
a. What
is the purpose of functions Prototype and Scope?
b. Differentiate
between pointers and references.
c. What
is meant by pass-by value parameter?
d. Differentiate
between procedural and object oriented programming languages.
e. Suggest
the storage class for the following variables
A normal
variable
Very heavily
used variable
A variable that
spans multiple files
A variable that
should retain its value after the function call is over.
f. Why
an array is called a derived data type ?
g. Differentiate
between single and multiple inheritance.
h. List
two major difference between a data file and program file.
i. Explain
what do you mean by overloading the arithmetic assignment operator.
j. What
are the advantages and disadvantages of late binding?
Section –B
2.
a. Write
a program in C++ showing the use of riend function.
b. Write
a program in C++ to find sum of digits of a number.
3.
a. Write
a program in C++ to find rots of a quadratic equation.
b. Write
a program in C++ to find factorial of a number using recursion.
4.
a. Write
a program in C++ to interchange the elements of two arrays.
b. Write
a program in C++ showing the use of Destructor function.
5.
a. Write
a program in C++ that reads an unspecified number of numbers and then together
with their deviations from their mean.
b. Explain
different types of base classes in C++ language?
6.
a. Write
a program in C++ open and close a file.
b. Explain
the term Array of Pointers with help of a suitable example.
7. Write
shorts notes on following:
a. Inline
Member functions.
b. Pure
Virtual functions.
c. Polymorphism.
0 comments:
Post a Comment
North India Campus