Roll no....................
Total No. of Questions: 07]
Paper ID [MB681]
MBA(Sem.-3rd
& 4th )
PROGRAMMING IN
C/C++ (MB-681)
TIME: 03 Hours
Instruction to Candidates:
1)
Section – A is
Compulsory.
2)
Attempt any Four
questions form Section – B.
Section - A
Q1)
a)
What is equality operator? How it is different from assignment operator?
b) How are the
variables declared in C++?
c) List out the merits
and demerits of while loop and do-while loop.
d) what is a macro and
how is it different from a preprocessor?
e) Can an array name be
used as an argument to a function? Explain.
f)List
the merits and demerits of the enumeration data types.
g) How is a nested
class declared and defined in C++?
h) What is a Pure virtual
function?
i) In what way a
constructor is different from an automatic initialization?
j) What are binary
files?
Section-B
Q2) (a)
What is an algorithm? Write an algorithm to find greatest common divisor of the
given two numbers.
(b) Write a program in C/C++ to find
roots of a general quadratic equation.
Q3)
(a) Explain the difference between pass by value and pass by reference with the help of suitable code fragments.
(b)
What is recursion? Write a program in C/C++ to find factorial of a number using
recursion
Q4)
(a) What is meant by a union? Differentiate between a structure data type and a
union.
(b)
What are pointers'? Write a program to concatenate the given two strings into
one string using pointers.
Q5)
(a) What is a friend function? Write a program to demonstrate the usage of a friend
function.
(b)
What is multilevel inheritance? Write program in C++to explain multilevel inheritance.
Q6)
(a) Explain the difference between early and late binding with the help of
suitable code fragments.
(b) Explain the merits and demerits of random
access file processing in C++.
Q7)
Write short notes on the following:
(a) Software
reusability.
(b) Operator
overloading.
(c) Default
Constructor.
0 comments:
Post a Comment
North India Campus