levo

Producing Robust Programs

Testing, errors and test data

  • 3 things to know
  • J277/02

Overview

Iterative and final testing, syntax and logic errors, normal, boundary, invalid and erroneous test data with worked examples, and writing a test plan.

What you need to know

Answer each one before you reveal it.

Your recallNot started
Key term

What is the purpose of testing a program?

Key term

What is iterative testing?

Key term

What is final, or terminal, testing?

Questions from this subtopic

Each one with the model answer underneath.

  1. 1

    What is the purpose of testing a program?

    Model answer

    Testing finds errors so they can be fixed before the program is used. Testing also shows whether the program meets its requirements and copes with unexpected input.

  2. 2

    What is iterative testing?

    Model answer

    Iterative testing checks each module of a program while the program is being developed. The module is retested after every change until it works.

  3. 3

    What is final, or terminal, testing?

    Model answer

    Final testing checks the complete program once development has finished. The whole program is tested against its original requirements.

  4. 4

    Why is final testing still needed if every module passed iterative testing?

    Model answer

    Modules that work alone can still fail when they are combined. Final testing also confirms the finished program does everything it was designed to do.

  5. 5

    What is a syntax error?

    Model answer

    A syntax error is code that does not follow the rules of the language, so it cannot be translated or run. A misspelt keyword such as prnt is one example.

  6. 6

    What is a logic error?

    Model answer

    A logic error lets the program run but makes it give the wrong result. An example is a loop that stops one pass early, so the last item is never processed.

Other ways to work this

The same content, four other ways.

What is inside Levo

Six ways to work the same material.

1Closed book
2Open book
3Closed book

The 3-step method, run for you

Answer cold, learn it, then prove it stuck. Levo tracks the jump between your first attempt and your last.

Systems Architecture
Memory and Storage
Computer Networks, Connections and Protocols
Network Security

Cram a whole paper in one sitting

Sort every topic into what you know and what you do not, then drill only the weak ones.

A bit is the unit of data.
smallestlargestmain

Blank Blitz makes facts automatic

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

AThe sum 0 + 0 is 0, and 0 + 1 is 1.
BThe sum 1 + 1 is 0 carry 1.
CThe sum 1 + 1 + 1 is 1 carry 1.

Build It gets the exam shape right

Assemble a full-mark answer from its marking points, in the order an examiner wants them.

Integer means a whole number with no fractional part.
TrueFalse

Test It catches misconceptions

Spot the fault in a statement. The traps are the mistakes students actually make.

721941163128510

Brain Breaks between sessions

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

Every question in Producing Robust Programs, on a schedule.

Attempt a question from memory, write the correct version, then attempt it again. Levo records the jump between your first attempt and your last, and brings each question back on the day you are due to forget it.

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