Six original Cambridge-style questions on test data, test plans and maintenance, with mark-scheme style solutions.
A program accepts the number of days of a hotel booking: a whole number from 1 to 28. Give one example of normal, abnormal, extreme and boundary test data, with the expected result for each.
Explain the need for a test plan and describe its likely contents.
Describe corrective, adaptive and perfective maintenance.
Identify the type of maintenance in each case. (a) A shop's program is changed to accept a new payment card. (b) A bug that printed the wrong date on receipts is fixed. (c) A menu is redesigned so tasks need fewer clicks.
The function returns the delivery charge for an order:
FUNCTION Delivery(OrderTotal : REAL) RETURNS REAL
RETURN 4.99
ENDFUNCTIONAmend the function so that delivery is free (0) for orders of 50.00 or more, and 4.99 otherwise.
For the amended Delivery function, give three values of OrderTotal that test the condition, with the expected result for each.
Mark this once you have attempted all six and checked your working. It records a Practiced badge on the topic and adds a one-time bonus. Revealing the solutions alone does not count.