9-10 Digital Technologies: Object-oriented programming, debugging and testing Hangman
Years 9–10 · Victorian Curriculum · 14 key terms.
Every word, shuffled.
This class works in every free tool. Save it for journeys, badges and more tools.
Students design and write classes, then handle errors, debug, modify and test programs with assertions. See the whole journey →
Want your own words? Free Hangman Generator →
Same journey, on the board
Two answers, the class points left or right and you reveal why. The journey’s own questions, no devices.
Same words, on paper
The quiet activity after the loud one. Free to print, answer keys included.
Add your class once in the Random Name Picker Wheel — it works here and in the Random Team Generator.
When your class is on devices
Sprint: a fast whole-class game on any module, where every student plays at their own level. Same modules, with a free class.The 14 key terms
- 1oop - classes & objects
- A blueprint that defines the structure of objects.
- 2oop - __init__ method
- Constructor method that runs automatically when an object is created.
- 3oop - methods
- A function defined inside a class.
- 4oop - string representation (__str__)
- Returns a human-readable string used by print() and str().
- 5oop - practical application
- Bundling data and methods that operate on it together in a class.
- 6oop - class variables vs instance variables
- Variable defined in the class body and shared by all instances.
- 7oop - private attributes (underscore convention)
- Convention for internal use - don't access directly from outside the class.
- 8oop - inheritance (basic)
- A child class receives methods and attributes from a parent class.
- 9class diagram
- A box listing a class's name, attributes and methods. An arrow joins a child class to the parent it inherits from. You draw it as a plan before writing the code.
- 10error handling - try/except basics
- Block containing code that might cause an error.
- 11Traceback (most recent call last):
- The start of Python's error report. It names the error type (like NameError) and the line number where it happened, so you know where to start looking for the bug.
- 12print(variable)
- Debugging tool: print a variable at key points, then compare each value with your trace table of what it should be. The first mismatch shows where the bug is.
- 13modify code
- Read and trace the code first to see what it does, then change one small part at a time and re-run your test cases to check the effect of that change.
- 14assert
- Checks a condition is True, like assert add(2, 3) == 5. If the result is not what you expected, it raises an AssertionError, so test cases can run automatically.
Frequently Asked Questions
Do I need an account?
No. Hangman runs straight from this page — no account, nothing to install. If you add your class names, they are saved in your own browser and sent to Cloodit only if you choose to save the class.
How do I play it with my class?
Put the page on your whiteboard or projector and press Play. The class calls out letters and you click or type them. Six wrong letters and the word gets away. After every word its definition appears, so each round ends on the meaning, not just the spelling.
Can I use my own words?
Yes. The free Hangman generator at cloodit.com/hangman/ takes any list: one word or phrase per line, with a definition after a dash if you want it shown at the end of the round.
Can I put my students' names in?
Yes. Add your class once, here, on a Hangman topic page or in the Random Name Picker Wheel, and a random student is called for each word. The class stays in this browser on this computer, so it is still there next lesson.
Are the worksheets free too?
Yes. Every module in this journey has a free printable worksheet with a full answer key, and there are crosswords and word searches built from the same key terms.