Try a free question Browse topics Course access

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
Computer systems 6 topics
Database design and development 4 topics
Web 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.

Input ranges for two tasks
TaskLower limitUpper limit
Rate an activity110
Choose a group size2040

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.

View access to Higher Computing Science

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.

Original pseudocode
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.

Official course and assessment specification