← All printables
ACARA Digital Technologies Years 9–10 · Modules 591–622

Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.

A free printable ACARA Digital Technologies Years 9–10 definitions worksheet with 10 key terms, built from the key terms of Testing and Validating Programs (Modules 591–622) — Writing a test plan from requirements, Writing test cases before the code, Testing a program that uses input(), Storing test cases as a list of tuples, Looping through test cases and printing PASS or FAIL, Testing decimal results with round() and more. Print it or save it as a PDF — the answer key starts on its own page. No login needed.

ACARA Digital Technologies Years 9–10 Definitions Worksheet: Testing and Validating Programs (Modules 591–622)

Name:
Date:
Class:

Key terms

Write what each term means, in your own words.

1
test plan
2
test first
3
input()
4
tests = [(5, 25), (0, 0)]
5
for value, expected in tests:
6
round(actual, 2) == expected
7
assert not is_valid(-5)
8
test coverage
9
test report
10
regression testing

Answer Key

ACARA Digital Technologies Years 9–10 · Modules 591–622 · Student wording will vary for definitions
1test plan — A list, made before testing, of normal, boundary and invalid test cases for each requirement, with the expected result for every test.
2test first — Write test cases and expected results from the requirements before coding, so they check what the program should do, not what your code does. Rerun them as it grows.
3input() — Pauses a program so you can type a test value; it returns text. Test by typing each planned input in order, then compare the printed output with the expected result.
4tests = [(5, 25), (0, 0)] — A list of (input, expected) tuples. Each tuple is one test case, so a loop can run many tests stored in one variable. Add a new tuple to add a new test.
5for value, expected in tests: — Loops over each (input, expected) tuple in tests, unpacking it into two variables. Then you call the function, compare actual to expected, and print PASS, or FAIL with both values.
6round(actual, 2) == expected — Floats can be slightly inexact (0.1 + 0.2 is not 0.3), so round the actual result to a set number of decimal places before comparing it with the expected value.
7assert not is_valid(-5) — Tests that bad input is rejected: call the validator with an invalid value and assert it returns False. If an error is expected, use try/except; no error means the test fails.
8test coverage — Test cases are enough when they use normal, boundary and invalid data and run every branch and loop. Missing any leaves the program only partly validated, and passing tests never prove no bugs.
9test report — A summary of how many tests passed and failed, what was fixed and retested, and a conclusion on whether the program is validated, backed by the results and any limitations.
10regression testing — After fixing a bug, rerun the failed test and all earlier tests, because a fix can break code that used to pass.

Modules this definitions worksheet covers

Every module has its own free printable worksheet with an answer key, and students can practise the same terms interactively on Cloodit.

Part of: ACARA Digital Technologies Years 9–10 — Testing and Validating Programs, QCE Digital Solutions Unit 1 — Algorithms and Programming Techniques, QCE Digital Solutions Unit 1 — Programmed Solutions, QCE Digital Solutions Unit 2 — Prototype Data Solutions, WA Computer Science ATAR Year 11 — Pseudocode and Algorithm Design, WA Computer Science ATAR Year 11 — Modular Programming

More ACARA Digital Technologies Years 9–10 printables

This printable is free — no login needed.

Free classroom tools, no account: Hangman · Random Team Generator · Random Name Picker Wheel · Seating Plan Maker

Make a free class, give it a journey, and you also get:

Create a free teacher account →

No credit card. No setup fee. Make a class and invite students in under three minutes.