PaperID [8C304]
(Pleasefill this Paper ID in OMR Sheet)
BCA (Sem.- 3'd) l4AY - 2006
OBJECT ORIENTED PROGRAMMING USING C++ (BC - 304)
(alt*tw. a,Lh,rAlid'x4 y&r .@tvv
u v
Time: 03Hourc MaximumMarks: 60
Instruction to Candidates:
1) Section- A is Compulsory.
2) Attempt any Four questionsfrom Section- B.
Section - A
QII Q0x2=20)
d) of usingfriend functions?
What are someadvantages/disadvantages
) Differentiatebetweenmacrosandfunctions?
pAssl
R-249 P,T.O.
Section- B
(4 x10 =40)
of an objectorientedprograrnming?Compare
Q2) What arethe main characteristics
themwith the structuredprogramming?
l"- ' '
1..,-' ";' '1
Q3) What is a class?Give an advantage of havingclassesin a program.How does
i t a c c o m p l i s h d a t a h : $ l q:g_?. , .i._i . , . . ' . r l i . , .1 . , : :
Q7) Write a C++ programthat promptsthe user to enter the nameof two files,
and copiesthe contentsof the first file into the secondfile. Your program
shouldbe able to handleany kind of error that occursduring the courseof
programexecution.
--:z
- ---'
-
R-249