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
Q1)
a)
What are preprocessor directives?
b)
What is function?
c)
What is the syntax to overload an operator?
d)
What is static function?
e)
Define variable.
f)
What is the use of buffer?
g)
What is class?
h)
Define and declare string.
i)
What is the use of friend class?
j)
What is the use of protected access specifies?
Section
- B
Q2)
What is the difference between structure and union? Explain both of them with
example and syntax.
Q3)
What is inheritance? What are the different types of it? What do you mean by
ambiguity in inheritance?
Q4)
What is file handling? What are the various operations of file? Write a small
program to read the name of a student from a file.
Q5)
What are the various control and conditional statements in C++? Explain the
use of break and continue statement.
Q6)
What is an array? What is various type of array? Write a program ro arrange a
list of elements in ascending order.
Q7)
What is constructor? Write a small program to demonstrate copy constructor and
destructor.
0 comments:
Post a Comment
North India Campus