0% found this document useful (0 votes)
55 views2 pages

Paper ID (B02l2l: Roll No. Total No. of Questions: 071 (Total No. of Pages: 02

This document contains instructions for a 3-hour exam with 60 maximum marks for the BCA Sem-3 Object Oriented Programming Using C++ paper. Section A contains 10 multiple choice questions worth 2 marks each, covering topics such as the differences between classes and objects, C++ control structures, header files, function prototypes, friend functions, data initialization, and file I/O streams. Section B contains 4 long answer questions worth 10 marks each, asking about the characteristics of object oriented programming compared to structured programming, distinguishing member functions from non-member functions, recursion and writing a recursive GCD program, multiple inheritance implementation in C++, virtual and static functions with examples, and writing a program to copy contents from

Uploaded by

Kushagra Gaur
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
55 views2 pages

Paper ID (B02l2l: Roll No. Total No. of Questions: 071 (Total No. of Pages: 02

This document contains instructions for a 3-hour exam with 60 maximum marks for the BCA Sem-3 Object Oriented Programming Using C++ paper. Section A contains 10 multiple choice questions worth 2 marks each, covering topics such as the differences between classes and objects, C++ control structures, header files, function prototypes, friend functions, data initialization, and file I/O streams. Section B contains 4 long answer questions worth 10 marks each, asking about the characteristics of object oriented programming compared to structured programming, distinguishing member functions from non-member functions, recursion and writing a recursive GCD program, multiple inheritance implementation in C++, virtual and static functions with examples, and writing a program to copy contents from

Uploaded by

Kushagra Gaur
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 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

You might also like