Skip to content
MathsGenie logo
Open app

Course home

  1. IGCSE
  2. Computer Science Edexcel
  3. Question bank

Algorithms

EasyMedium
123456789101112131415161718192021222324252627
Question 1

A theme park booking system determines ticket pricing using age categories.

The age boundaries are defined as follows:

  • Toddler Rate: Ages up to and including 3
  • Child Rate: Ages 4 to 12 inclusive
  • Adult Rate: Ages 13 to 59 inclusive
  • Senior Rate: Ages 60 and over

Boundary testing is used during system development. A boundary value is the most extreme valid value within a range.

Complete the table by identifying the missing values for [A], [B], and [C] to show the boundary test data and expected outcomes.

Test DescriptionBoundary Test Data (Age)Expected Output
Upper boundary for Toddler[A]"Toddler Rate"
Upper boundary for Child12[B]
Upper boundary for Adult[C]"Adult Rate"
[3]

Algorithms Questions

  1. IGCSE
  2. /Computer Science
  3. /Algorithms