Programming in C++ 2021
Programming in C++ 2021
in
[2]
H-94-21 Roll No. ....................... ANNUAL (c) Write a C++ program to demonstrate return by
reference.
EXAMINATION, 2021
Unit-III
3. (a) Write the differences between structure and class with
B.C.A. II example.
B.C.A. 203
(b) Discuss the static data member and static member
Paper III
function in detail.
(Programming in C++)
(c) Write a C++ program to demonstrate copy con
Time : 3 Hours] [Maximum Marks : 80 structor.
Note : Attempt any two parts from each unit. All questions
carry equal marks. Unit-IV
4. (a) Explain the pointer to object with example.
Unit-I
1. (a) What is OOP ? Write the appllication of OOP. (b) What is inheritance ? Write a C++ program to
demonstrate multiple inheritances.
(b) Discuss the constants and variables of C++ in
detail. (c) Discuss the access specifiers in brief.
(c) Write a C++ program to demonstrate switch state
ment. Unit-V
5. (a) Describe the pure virtual function with example. (b)
Unit-II
2. (a) Define structure. Explain how to access structure Write a C++ program to overload binary operator. (c)
member with example.
Explain the friend function with example.
(b) Describe how to access constant to a function with
example.
MasterProgramming.in
✪✪✪✪✪ c ✪✪✪✪✪
P. T. O. H-94/21 2 / 50