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 consisting of TEN questions carrying
TWO
marks each.
2.
SECTION-B contains SIX questions carrying TEN marks each and students has to
attempt any FOUR questions.
SECTION-A
l.
Write briefly :
a)
Write about if-else construct.
b)
What do you mean by data hiding in C++?
c)
What are some advantages/disadvantages of using friend functions?
d)
How the end of file can be detected?
e)
What do you mean by pure virtual function?
f)
Can I overload the destructor of class? Support your answer.
g)
What do you mean by new and delete operator?
h)
Define the use of structure in file operations.
i)
How 2-Dimensional Array can be declared in C++?
j)
Define Static Functions.
SECTION-B
2.
What are the main characteristics of an object oriented programming? Discuss
basic structure of C++ program with example.
3.
How you will define a function? Explain the concept of "Pass by
value" and
"Pass by reference" with suitable example.
4.
What purpose is served by constructors and destructors? List the rules while
writing a constructor function. Explain with help of an example.
5.
Define inheritance. What are various types of inheritance that can be implemented
in C++? Discuss with examples.
6.
How to copy contents of one file to another through C++ program?
7.
Define Polymorphism. Discuss with example how it can be implemented in
C++?
0 comments:
Post a Comment
North India Campus