Higher Computing Science
Develop modular solutions, adapt algorithms, analyse systems and build more complex database and web designs.
Start with one topic, try a mix of questions or choose a short exam-style set. If we can't check an answer reliably, we'll tell you.
Question paper: 80 marks in 2 hours. Assignment: 40 marks, 6 hours. Weighting: two thirds and one third. Official specification.
Use the practice cases and data to prepare for assignments. Follow your teacher's instructions for assessed work and supervised practical work.
Choose a topic
Software design and development 8 topics
- From a brief to an implementable design Practise this topic
- Read, write and debug selections Practise this topic
- Build a conditional input-validation loop Practise this topic
- Traverse arrays and maintain a running total Practise this topic
- Search, count, find minimum and maximum Practise this topic
- Functions, parameters and local scope Practise this topic
- Records, parallel arrays and sequential files Practise this topic
- Test, diagnose and evaluate against the brief Practise this topic
Computer systems 6 topics
- Two’s complement and fixed-width ranges Practise this topic
- Floating point and character encodings Practise this topic
- Bitmap, vector and multimedia representation Practise this topic
- Architecture and the fetch-execute cycle Practise this topic
- Security, privacy and authorised use Practise this topic
- Evaluate the environmental effect of computing Practise this topic
Database design and development 4 topics
Learn · Guided practice
Start with a guided question
Choose an answer and use the explanation to build the skill. Then try the independent task below.
Which design supports reusable validation?
A routine must accept a whole number within the limits for the task that called it. Both limits are inclusive.
| Task | Lower limit | Upper limit |
|---|---|---|
| Rate an activity | 1 | 10 |
| Choose a group size | 20 | 40 |
Choose an answer to see its feedback.
Pass in both bounds, repeat until input is valid, and return it.
Correct. A caller can supply 1 and 10 for one task and 20 and 40 for another. Returning only after the input passes both checks means the caller receives a usable value.
Pass in both bounds, show an error if input is invalid, and return it.
Try again. The caller could receive an invalid value. Request another input before returning.
Repeat until input is from 1 to 10, then reuse that function for any range.
Try again. That fixed range works here. Passing the bounds lets a second caller choose a different range.
Try independently
A reusable validated input function
Question-paper skills · modular programming and testing
The original function must return a whole number from lower to upper inclusive. Assume lower and upper are valid integers with lower ≤ upper, and READ_INTEGER already rejects non-integer entries. The source contains a logic error.
This is an original practice task. Write or make your own response before opening the guide. The practice marks show the depth expected; they are for self-review, not an automatic exam grade.
FUNCTION inputBetween(lower, upper) value ← READ_INTEGER() WHILE value < lower AND value > upper value ← READ_INTEGER() END WHILE RETURN value END FUNCTION
Your notes in these boxes are temporary and are not saved to course progress. Keep a copy before leaving.
For drawings, practical files or performances, use your own suitable materials or software.
Open the response and review guide
Part 1 · 3 practice marks
Replace AND with OR: WHILE value < lower OR value > upper. The original conjunction is never true for an ordered interval.
- 1 mark: A value cannot simultaneously be below lower and above upper when lower ≤ upper.
- 1 mark: Uses OR to reject either out-of-range condition.
- 1 mark: Preserves strict < and > so endpoints remain valid.
Equivalent accurate wording and valid alternative methods are welcome.
Part 2 · 4 practice marks
0 prompts again; 1 returns 1; 10 returns 10; 11 prompts again.
- 1 mark: 0 rejected.
- 1 mark: 1 accepted and returned.
- 1 mark: 10 accepted and returned.
- 1 mark: 11 rejected.
Equivalent accurate wording and valid alternative methods are welcome.
Part 3 · 1 practice mark
A caller can request 20–40 using the same validation code.
- 1 mark: The same tested routine can validate different ranges without duplicating/changing its internal code.
Equivalent accurate wording and valid alternative methods are welcome.
A different valid response can meet the criteria. Discuss uncertain credit with your teacher; this guide does not mark it wrong.