12.3 Program Testing and Maintenance (3)

Resources | Revision Questions | Computer Science

Login to see all questions

Click on a question to view the answer

1.

Consider a system that calculates the total cost of items in a shopping cart. You are tasked with creating a test plan. Describe the different categories of test data you would use to test the functionality of the total cost calculation. For each category, explain what aspect of the system's functionality it aims to verify.

2.

Question 1

A small program has been written in Python to manage a simple library. It currently stores book titles and author names in a list of tuples. The program allows the user to add new books, list all books, and search for books by title. The program is functional but lacks error handling and doesn't allow for multiple books by the same author. Analyse the existing program and propose amendments to enhance its functionality, including considerations for robustness and user experience.

3.

Question 2

Describe and compare the different types of system maintenance. Your answer should include a definition of each type and provide a practical example of when each type of maintenance would be required.