Anda di halaman 1dari 2

Roll No.

. Total No. of Questions: 071 llbtal No. of Pages : 02

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)

a) What do you meanby headerfile?

b) What are functionprototypes?

c) What is the significanceof accessspecifiersin a class?

d) of usingfriend functions?
What are someadvantages/disadvantages

e) How manyways arethereto initialize an int with a constant?

0 Write a declaratorfor a purevir-tualfunctioncalledpurevar0thatreturns


type void and takesoReargumentof type int.

g) What do you meanby pure virtual function?

h) Can I overloadthe destructorfor my class?Supportyour answer.

1) What do you meanby new and deleteoperator?

) 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 . , : :

Qa) What do you meanby recursion?Write a programin C ++ to find the GCD


of two numbersusingrecursion.

Q5) What is multiple inheritance?How it is realizedin C++? Give suitable


examples.

Q6) What puryoseis servedby constructorsand destructors?Can we overload


them?

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

Anda mungkin juga menyukai