levo

Algorithm Design and Problem-Solving

Test data and trace tables

  • 3 things to know
  • Paper 2
Start revising · £5/month

Overview

Normal, abnormal, extreme and boundary test data, and dry-running algorithms with trace tables.

What you need to know

Answer each one before you reveal it.

Your recallNot started
Key term

A program accepts whole numbers from 1 to 100. Give one example of each type of test data

Key term

A program accepts whole numbers from 18 to 65. Give suitable test data of each type

Key term

A program accepts percentages from 0 to 100. Give suitable test data of each type

Questions from this subtopic

Each one with the model answer underneath.

  1. 1

    What is normal test data?

    Model answer

    Normal test data is sensible data that the program should accept and process.

  2. 2

    What is abnormal test data?

    Model answer

    Abnormal test data is data that the program should reject, such as text where a number is expected.

  3. 3

    What is extreme test data?

    Model answer

    Extreme test data is the largest or smallest value that the program should accept.

  4. 4

    What is boundary test data?

    Model answer

    Boundary test data is the largest or smallest value that should be accepted together with the value just beyond it that should be rejected.

  5. 5

    A program accepts whole numbers from 1 to 100. Give one example of each type of test data.

    Model answer

    Normal data could be 50, and abnormal data could be 150 or the word ten. Extreme data is 1 and 100. Boundary data is 0 and 1, or 100 and 101.

  6. 6

    Why should a program be tested with abnormal data?

    Model answer

    Abnormal data shows whether the validation works and whether the program handles bad input without crashing.

Other ways to work this

The same content, four other ways.

Everything in your subscription

Runs, plus a mode for every other kind of session.

1Flash
2Imposter
3Fade
4Brain dump

Learn every subtopic in runs of four questions

Facts flash and fade, a wrong word hides in some of them, and a brain dump decides which questions are locked in.

Data Representation
Data Transmission
Hardware
Software

Cram the night before, weakest topic first

A quick scan finds your weakest topics. Recall each fact you missed three times in a row.

A robot is .
programmableportablehumanoid

Blank Blitz consolidates the facts

Rapid timed gap-fills on the terms and numbers you need to recall without thinking.

✓What it iscovered
~Why it happenspartly there
How long it lastsnot there yet

Explain It tests your understanding

Explain a concept in your own words and see which of its points you covered.

A nibble is 4 bits. A byte is 8 bits.
TrueFalse

Test It catches misconceptions

Spot the fault in a statement. The faults are the mistakes students make most often.

721941163128510

Brain Breaks between sessions

Short focus games to reset attention, so the next set lands better than the last.

Every question in Algorithm Design and Problem-Solving, on a schedule.

Learn it in runs of four questions, each ending on a brain dump against the clock. Every question you lock in comes back the next day, then at longer gaps, each time just before you would forget it.

Or £46 a year, about £3.83 a month. Cancel anytime.