9ObjectOrientedProgramingusingCSeptemberOctober2021
9ObjectOrientedProgramingusingCSeptemberOctober2021
q
sG - 636
ll Semester B.C.A. Degree Examination, SeptJOct.202l
(Y2K8)
COMPUTER SCIENCE
BCA 2O4 : Object Oriented Programming using G++
Time : 3 Hours Max. Marks: 70
SECTION _ B
P,T.O.
sG-636 I tilflffi llll llll lllil lllil llll llll
:
17) Explain any three built in string functions with example.
18) What is the difference between actual parameier and formal parameters ?
SECTION -C
lll. Answer any five questions (5x7=t$)
21) a\ Write the application of object oriented programming. 3
b) Explain class definition with an example. 4
22) al Describe the different data types used in C++. 3
b) Write the difference between call by value and call by reference. 4
23) What is constructor ? Write the different rules in naming constructor in
oops.
24) Write a C++ prograrn to overload '+' operator to perform addition of two
machines.
' 25) What is inheritance ?6Explain the differenttypes of inheritance and also write
the advantages of it.'
26) Explain overriding function with an example.
271 a\ Describe the different modes o{ opening a file in C++. 4
b) Explain the file pointers seekp( ), tellp( ) and seekg( ). 3
28) Write a C++ progrartr to search an element using templates.
* sEc,oN-D
1