Roll No.
Total No. of Questions : 07
BCA
(Sem.–3rd)
OBJECT
ORIENTED PROGRAMMIGN USING C++
Subject
Code : BC-304
Paper
ID : [B0212]
Time : 3 Hrs.
INSTRUCTION TO CANDIDATES :
1.
Section-A is compulsory.
2.
Attempt any Four questions form Section-B.
SECTION-A
1.
a)
What do you mean by header file?
b)
What are function prototypes?
c)
What is the significance of access specifies in a class?
d)
What are some advantages/disadvantages of using friend functions?
e)
How many ways are there to initialize an int with a constant?
f)
Write a declaratory for a pure virtual function called purevar0 that returns
type
void and takes one argument of type int.
g)
What do you mean by pure virtual function?
h)
Can I overload the destructor for my class? Support your answer.
i)
What do you mean by new and delete operator?
j)
Differentiate between macros and functions?
Section
- B
Q2)
What are the main characteristics of an object oriented programming? Compare
them with the structured programming?
Q3)
What is a class? Give an advantage of having classes in a program. How does it
accomplish data hiding?
Q4)
What do you mean by recursion? Write a program in C ++ to find the GCD of
two numbers using recursion.
Q5)
What is multiple inheritance? How it is realized in C++? Give suitable examples.
Q6)
What purpose is served by constructors and destructors? Can we overload them?
Q7)
Write a C++ program that prompts the user to enter the name of two files, and
copies the contents of the first file into the second file. Your program should
be able to handle any kind of error that occurs during the course of program
execution.
0 comments:
Post a Comment
North India Campus