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
Ql)
a)
How the end of file can be detected?
b)
Write about if --else construct.
c)
What are inline functions?
d)
Define the use of structure in file operations'
e)
Name two objects of stream class associated with the standard device
for
error messages
f)Describe
the "kind of' class relationship. Give an example.
g)
What are manipulators?
h)
Write about sequential input output operations'
i)
How is a static variable different from a static function.
j)
What are the advantages/disadvantages of using friend functions?
Section
- B
Q2)
Explain the essential characteristics that an object oriented program should support?
Q3)
Explain tire user defined data types. How are they used to declare built in
data types?
Q4)
What are constructors? Flow to declare a constructor? List the rules while writing
a constructor function. Explain with help of an example.
Q5)
Define inheritance. What is the inheritance mechanism in C++? What should be
the structure of a clas5 when it has to be base for other classes?
Q6)
(a) Explain the differences between passing arguments "by reference"
and "by
addresses" to functions.
(b)
What is meant by abstract base class? Explain.
Q7)
What is the difference between Static binding and Run time binding? Explain
with a suitable C++ code.
0 comments:
Post a Comment
North India Campus