Course-topic checklist
Review the areas in your subject guide and record your own readiness.
WACE Computer Science
Syllabus preparation and a personal revision plan for your subject.
Start with the subject’s course-topic checklist. Mark the areas you need to revise, choose what to practise next and print your revision plan before leaving the planner.
When you find a gap, use the WACE WACE Computer Science practice exams with worked answers to revise it before your next attempt.
Try a free worked-question preview for WACE Computer Science →Original practice item. A weather logger runs the pseudocode below. Complete a trace table (desk check) using the test inputs 12, -4, 9, 0, with the columns reading, reading > 0, total, count, reading == 0 and output. State the final output. (4 marks)
total = 0
count = 0
REPEAT
INPUT(reading)
IF reading > 0 THEN
total = total + reading
count = count + 1
END IF
UNTIL reading == 0
average = total / count
PRINT("Average: ", average)Answer: Worked solution
Trace table (one row per pass of the post-test loop):
| reading | reading > 0 | total | count | reading == 0 | output |
|---|---|---|---|---|---|
| 12 | TRUE | 12 | 1 | FALSE | |
| -4 | FALSE | 12 | 1 | FALSE | |
| 9 | TRUE | 21 | 2 | FALSE | |
| 0 | FALSE | 21 | 2 | TRUE | Average: 10.5 |
The loop body runs four times. The negative reading fails the IF test, so total and count do not change. On the fourth pass reading == 0 is TRUE, so the loop exits after the body has run, and the post-test loop also processes the terminating 0 (it is not added because 0 > 0 is FALSE). average = 21 / 2 = 10.5, so the output is Average: 10.5.
Marking guide (4 marks): 1 mark for each correct row (4 x 1 mark): row 1 (12, TRUE, 12, 1, FALSE); row 2 (-4, FALSE, 12, 1, FALSE); row 3 (9, TRUE, 21, 2, FALSE); row 4 (0, FALSE, 21, 2, TRUE, output Average: 10.5). A row with any wrong value earns no mark for that row; carry an earlier error forward if later rows follow correctly from it. Accept TRUE/FALSE written as T/F or True/False.
An original practice example, not a prediction of a future exam question.
Get free WACE Computer Science revision notes →
The WACE Computer Science Mastery Pack includes the full predictor plus revision notes, original practice questions and flashcards.
$40 AUD once · One subject · No subscription
One payment, no subscription. Preview a worked question free first.
Review the areas in your subject guide and record your own readiness.
Choose topics to practise and print your plan. Planner selections reset when you leave or reload.
Find the subject’s official assessment archive and current course requirements.
The WACE Computer Science Mastery Pack includes revision notes, original practice exams, answer guides, practice questions and flashcards. Open the hub for the full contents list and resource previews.
Unlock WACE Computer Science Mastery Pack — $40 once →Get free WACE Computer Science revision notes →
One subject · No subscription. Official past-paper links remain free.
Preview the questions and answer guides · Read a sample note
Studying more subjects? Compare Mastery Packs → · WACE Computer Science notes, practice exams and worked answers