i 1fiililt ilii ffit ilil!
irl|I rfi r rili
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
lnstruction : Answer all Sections.
SECTION -A
L Answer any ten of the following : (10x1=10)
1) What is Data abstraction ?
2) What are keywords ? Mention any 2 keywords.
3) Explain const qualifier.
4) What is the use of scope resolution operator in C++ ?
5) Mention the operators that can not be overloaded.
6) Explain default cons*fr.rctor.
7) Mention any 2 advantages of inheritance.
B) Explain data conversion.
9) What are templates ?
10) What is a pure virtual function ?
11) What is exception hdndling ? 1
12) What is the use of dOt( ) function ?
SECTION _ B
ll. Answer any five questions. (5x3=15)
13) List the various features of oops. Write any two limitations of oops.
14) What is constant qualifier ? Explain with example.
15) How do function defined in C++ ?
16) What is inline function ? Name two advantages of it.
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 ?
19) What is function overloading ? Explain with an example.
20) What is a function template ? Explain.
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
lV. Answer any one question. i (1;1$=10)
29) Write a C++ program to find the largest of three numbers using template.
30) Explain the mechanism of exception handling in C++ with various blocks
associated with exception handling.