You are on page 1of 1

UNIT -2 – Lab Questions

1. Limka Book of Records has an online application facility for the public to register
themselves and apply for thespecific achievement which will be taken into account
for the entry in to the Limka Book of Records.In their official website, once the user
has registered themselves successfully it has to show the welcome message"Hi"
followed by his/her "First Name".Similarly the when the user login into his account
it has to show "Welcome" followed by "First name and lastname".

2. Create a C++ program to construct the student database using default constructor. Get the
input such as name, roll number and fees payment details. All necessary and additional
details can also be get in the input format internally.

3. Write a C++ program that demonstrates both constructor overloading and the use of
destructors.

4. Write a C++ program to demonstrate the use of a destructor in a class. Implement a


simple class called Resource that allocates and deallocates memory in the constructor and
destructor, respectively.

5. Write a C++ program involving input/output using overloaded operators << and >> and
member functions of I/O stream classes.

6. Write a C++ program to overload unary + operator.

7. Identify the actors and the objects in the following scenario to register a patient in a
hospital management system: The administrator enters the patient’s name, address, date
of birth and emergency contact details into the system. If the patient has only public
health insurance, the administrator enters the patient’s medicare number, and the system
verifies this with government health database. If the patient also has private health
insurance, then the administrator enters also the patient’s private health insurance details,
and the system verifies these details with the private health insurance system. When these
details are verified as correct, the system saves the patient's details and confirms the
registration. Sketch a UML sequence diagram for the scenario where the administrator
registers a patient who only has public health insurance.

8. Draw a collaboration diagrams specifics deposit and withdraw transactions.

You might also like