Anda di halaman 1dari 2

Roll No.

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

PaperID [B02l2l
(Please fill this Paper ID in ONIR Sheet)

BCA (Sem.- 3'd)


OBJECT ORIBNTED PROGRAMMTNG USING C++ (BC - 304)

Time : 03 Hours Maximum Marks : 60


Instruction to Candidates:
l) Section- A is Compulsory.
2) Attempt any Four questionsfiom Section- B.
Section- A
QI) (10x2:20)

a) Differentiatebetweenclassand object.

b) Explainthe variouscontrolstructuresof C++.

c) What do you meanby headerfile?

d) What are ftlnction prototypes?

e) What are solneadvantages


/ disadvantages
of using fiiend functions?

0 How many ways are thereto initialize an int with a constant?

g) What do you meanby datahiding in C++?

h) Explainthe role of file iostrearn.hin C++.

i) What do you meanby new and deleteoperator?

j) Differentiatebetweenmacrosand functions.

E-703Ir208l PT:O.
Section- B
(4 x 10: 40)
of an objectorientedprogramming?
Q2) Whatarethe main characteristics Cornpare
them with the structuredprogramming?

Q3) Can we use the samefunction name for a member function of a class and
outsidefunction in the sameprogramfile? If yes how are they distinguished?
If no, give reasons.

Q4) What do you meanby recursion?Write a programin C** to find the GCD of
two numbersusing recursion

Q5) What is multiple inheritance?How it is reali zed rn C++? Give suitable


exanrples

Q6) Explainthe useof virtual and staticftlnctions.Give at lcastexarnplein each


case.

Q7) Write a C*i programthatpromptsthe userto enterthe uatneof two files,and


copiesthe contentsof the first file into the secondfile. Your programshould
be ableto handleany kind of enor that occr.trs during the courseof prograrn
execution.

++++

E-703

Anda mungkin juga menyukai