Skip to content

Branching and Repeating Algorithms Quiz

A Year 6 Digital Technologies quiz with ten questions on designing three-way decisions, repeating steps and testing a fictional garden-card algorithm.
QuizTechnologiesYear 6Shared by Heapso

Preview

Answers and teacher notes are hidden here. Verified teachers see them once it's copied into Heapso.

  1. 1

    A card sorter must label each card as “seed”, “leaf” or “other”. Which design covers all three alternatives?

    IF seed THEN seed ELSE leaf
    IF seed THEN seed ELSE IF leaf THEN leaf ELSE other
    REPEAT label seed three times
    IF leaf THEN other ELSE seed
  2. 2

    A card sorter checks IF colour = green THEN “leaf” ELSE IF shape = round THEN “seed” ELSE “other”. A green round card is labelled what?

    seed
    other
    leaf
    both leaf and seed
  3. 3

    Which instruction applies the same three-way sorting rule to every card in a stack?

    Sort the first card only
    Choose one label before looking
    Stop before any card
    FOR EACH card in stack: test its features and assign one label
  4. 4

    A stack has four cards. A FOR EACH card loop records one label per card. How many labels should be recorded?

    4
    3
    5
    1
  5. 5

    A loop says REPEAT UNTIL no cards remain: take one card, sort it. What must happen to avoid repeating forever?

    Add a new card each time
    Remove the sorted card from the unsorted stack
    Ignore the stack size
    Choose a label at random
  6. 6

    Design a rule for garden signs: red means “stop”, amber means “wait”, and every other colour means “check”. Which pseudocode is correct?

    IF red STOP ELSE WAIT
    IF amber STOP ELSE IF red WAIT ELSE CHECK
    IF red STOP ELSE IF amber WAIT ELSE CHECK
    REPEAT STOP three times
  7. 7

    A FOR EACH loop processes cards [red, amber, blue] using the sign rule. What output sequence is produced?

    stop, stop, stop
    check, wait, stop
    wait, stop, check
    stop, wait, check
  8. 8

    A design says REPEAT 3 TIMES: add 2 to count, starting from 0. What is count at the end?

    6
    5
    3
    2
  9. 9

    Which test set checks all alternatives of the red/amber/other rule and also checks a repeated stack?

    One red card
    A stack of red, amber and blue cards
    Two red cards
    An empty stack only
  10. 10

    The sorter labels only the first card of a three-card stack. What is the most useful design correction?

    Change every card to red
    Delete the other-colour branch
    Put the three-way decision inside a FOR EACH card loop
    Write the first label twice

© Australian Curriculum, Assessment and Reporting Authority (ACARA) 2010 to present, unless otherwise indicated. This material was downloaded from the Australian Curriculum website (accessed 18 October 2026) and was not modified. The material is licensed under CC BY 4.0.

Licence: CC BY 4.0. ACARA's terms of use. Heapso isn't affiliated with ACARA, and ACARA doesn't endorse Heapso or any product that uses the Australian Curriculum.

The Australian Curriculum website