Senior School · Apply progression
Computer Science & Programming · Grade 9
Detailed lessons with teaching guidance, vocabulary, activities, practice and misconception notes, following the concrete-to-abstract progression.
1. Algorithms and structured programming
Design algorithms using decomposition, abstraction, pseudocode, flowcharts and trace tables; Write structured Python programs using variables, selection, iteration, functions, lists and dictionaries.
Teacher-guided activity
Ask learners to explain design decisions, not merely submit code. Use small, inspectable programs and meaningful test cases.
Practice and application
1. Write a Python function that returns the largest value in a non-empty list. 2. Trace this program and state the output: total = 0; for n in [2, 4, 6]: total += n; print(total).
Answer guidance and assessment
1. def largest(values): if not values: raise ValueError('empty list') return max(values) — or an explicit loop comparing each item. 2. The loop adds 2 + 4 + 6 = 12; output: 12.
Likely misconception
Beginners often write 'if n > max' but forget to INITIALISE max with the first element — an unset max causes subtle bugs.
Check your understanding
What does this print? total = 0; for n in [2, 4, 6]: total += n
Binary search requires the list to be…
Decomposition in algorithm design means…
2. Validation, debugging and algorithm cost
Use validation, defensive programming, test plans and systematic debugging; Explain linear search and common sorting methods conceptually; compare time cost using input size; Represent integers, text, images and sound digitally; explain binary, units and data compression basics.
Practice and application
1. A program crashes when a user enters text where a number is expected. Describe how validation and defensive programming prevent this. 2. Explain the difference between linear search and binary search in terms of how they locate an item.
Answer guidance and assessment
1. Validation checks input type/range before use (e.g. try/except or input checks); defensive programming adds fallbacks so unexpected input produces a safe error instead of a crash. 2. Linear search checks items one by one — O(n); binary search halves a SORTED list each step — O(log n).
Likely misconception
Learners assume sorting is 'free' — binary search only works on sorted data, and sorting itself costs time.
Check your understanding
Validation of user input prevents…
Linear search on n items costs roughly…
Binary search on n sorted items costs roughly…
3. Databases and networks
Design relational database tables with primary keys, foreign keys and simple queries; Explain network topologies, protocols, packet switching, IP addressing and client-server communication.
Practice and application
1. Explain the purpose of a primary key in a relational database. 2. Compare client-server and peer-to-peer network models with one advantage of each.
Answer guidance and assessment
1. It uniquely identifies each record and prevents ambiguity when records are referenced by foreign keys. 2. Client-server: centralised control and easier management, but the server is a single point of failure. Peer-to-peer: no central server needed and resilient, but harder to manage and secure.
Likely misconception
A primary key must be UNIQUE and NEVER NULL — learners often allow duplicates, which breaks table relationships.
Check your understanding
A primary key must be…
Which network model has a central server?
Packet switching means data…
Grade mini-project
Project: Build a useful application such as a revision tool, data explorer or simple information system. Submit requirements, algorithm design, source code, test evidence, documentation and privacy considerations.
Unit 1
Object-oriented programming, data structures and algorithm analysis
Unit 2
Web/application development, version control and collaborative workflows
Unit 3