BCA - III Assignments 2024
BCA - III Assignments 2024
College,Naubatpur,Patna
BACHELOR OF COMPUTER
APPLICATIONS
(BCA)
ASSIGNMENTS
Session (2021-2024)
1
Object Oriented Programming using C++
Question 1:
(a) What is Object Oriented Programming (OOP) approach? Explain advantages of OOP.
(b) riefly explain different operators of C++.
(c) Explain use of followings in C++ programming, with an example program for each.
Question 2:
(a) What is a class? Explain how a class is created in C++, with the help of an example.
(b) Explain the following in detail, in context of C++ programming.
i. Access specifies
ii. Friend Function
(c) Write a C++ program to explain how an object can be passed as a parameter to a function.
Question 3:
(a) What are classs? Explain use of class, with the help of an example.
(b) What is inheritance? What are different types of inheritance? Explain how multiple
inheritance is implemented in C++, with the help of a program.
(c) Write a C++ program to overload ‘+’ operator in such a way that it return the sum of lengths
of two strings (Note: if S1 and S2 are two strings then S1+S2 or S2 + S1 should give the
sum of lengths of S1 and S2).
(d) Question 4:
(a) Explain the following in detail with the help of examples, in context of C++ programming
i. Destructor
ii. Virtual Function
iii. Inline function
(b) What is template? Write appropriate statements to create a template class in C++.
(c) Question 5:
(a) What is function overloading? Write a C++ program to explain concept of function
overloading.
(b) Explain use of any two I/O formatting flags in C++ with example.
2
Write a C++ program to demonstrate us of all the arithmetic and logical operators in C++.
Question 1
Write a C++ program to create shape class which is having abstract method area(). Derive classes
circle and rectangle from shape class. Override area method in circle and rectangle class to find
the area of the respective shape. Make necessary assumptions id any.