← All printables
ACARA Digital Technologies Years 7–8 · Modules 624–634

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

A free printable ACARA Digital Technologies Years 7–8 definitions worksheet with 10 key terms, built from the key terms of Programming with Control Structures and Functions (JavaScript) (Modules 624–634) — ReferenceError: a name that is not defined, TypeError: assignment to a constant variable, Logic errors: runs but gives the wrong answer, Off-by-one errors in loops, Debugging with console.log(), Tracing a loop by hand 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 7–8 Definitions Worksheet: Programming with Control Structures and Functions (JavaScript) (Modules 624–634)

Name:
Date:
Class:

Key terms

Write what each term means, in your own words.

1
ReferenceError
2
TypeError: Assignment to constant variable
3
logic error
4
off-by-one error
5
console.log("total:", total)
6
trace table
7
// console.log(total);
8
console.log("expected 25, got", square(5))
9
predict, change, run
10
debugging

Answer Key

ACARA Digital Technologies Years 7–8 · Modules 624–634 · Student wording will vary for definitions
1ReferenceError — An error shown when code uses a variable or function name that has not been declared, often from a typo, wrong capital letter, wrong scope or using it before declaring it.
2TypeError: Assignment to constant variable — The error JavaScript shows when code tries to give a new value to a const variable. Fix it by declaring the variable with let if its value needs to change.
3logic error — A mistake that lets the program run with no error message but gives a wrong result, such as using > instead of >=, the wrong operator, or steps in the wrong order.
4off-by-one error — A loop bug where it runs one pass too many or too few, caused by a wrong start value or mixing up < and <=. For example, i starting at 0 with i <= 5 runs 6 times, not 5.
5console.log("total:", total) — Prints a labelled variable value while the program runs, so you can spot the line where the value first goes wrong. Remove these debug lines once the bug is fixed.
6trace table — A table with one row per loop repeat, showing the counter, other variables and any output, filled in by hand until the condition is false.
7// console.log(total); — Putting // in front of a line makes JavaScript skip it, so you can switch code off to find a bug. Remove the // to switch it back on.
8console.log("expected 25, got", square(5)) — Test a function by calling it with chosen inputs, logging the actual result next to the expected value, then recording pass or fail. Retest after any fix.
9predict, change, run — Read the code and predict what it does, change one small part (a value, condition or message), run it, then compare the result with your prediction.
10debugging — Finding and fixing bugs: run the program, read the error or compare wrong output with what you expected, find the faulty line, fix one thing, then rerun to retest.

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 7–8 — Programming with Control Structures and Functions (JavaScript)

More ACARA Digital Technologies Years 7–8 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.