BCA 3rd Sem 2021 C++ Lab

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

ST.

XAVIER'S COLLEGE OF MANAGEMENT & TECHNOLOGY,


PATNA
Course:BCA| Semester: Third
Paper: Object Oriented Programing Using C++ Lab| Paper Code: BCA 305 | Date: 07/12/2021
Time: 1:30 hours | Full Marks: 60
SET A
Note: Attempt both the questions.

1. Write a program to convert minutes into class time with data members as
hours and minutes.
2. Write a program to overload ++ operator.

ST. XAVIER'S COLLEGE OF MANAGEMENT & TECHNOLOGY,


PATNA
Course: BCA| Semester: Third
Paper: Object Oriented Programing Using C++ Lab| Paper Code: BCA 305 | Date: 07/12/2021
Time: 1:30 hours | Full Marks: 60
SET B
Note: Attempt both the questions.

1. Write a program to find the biggest of two given numbers in two different
classes using friend function.
2. Write a program to demonstrate constructor overloading.

ST. XAVIER'S COLLEGE OF MANAGEMENT & TECHNOLOGY,


PATNA
Course: BCA| Semester: Third
Paper: Object Oriented Programing Using C++ Lab| Paper Code: BCA 305 | Date: 07/12/2021
Time: 1:30 hours | Full Marks: 60
SET C

1. Using the concept of function overloading Write function for calculating


the area of triangle,circle and rectangle.
2. Write a program to overload + operator using friend function.

You might also like