A-level Computer Science

The only interactive course with a tutor that finds your weak spots and fixes them.

Built by Cambridge students

Try an exam-style trace

Structured question 110 marks
  • No calculator
  • OCR H446
Spec and skills
  • Paper scope: Paper 2 · Algorithms and programming
  • Topic spec 2.2.1(a)
  • Topic spec 1.2.3(c)
  • Topic spec 1.2.4(b)
  • Skill: trace-for-loop
  • Skill: trace-tables
  • Structured practice
  • Version 3.0, April 2026

A number sequence

The program below builds a sequence of numbers. The for loop includes its upper bound.

a = 1b = 1for n = 1 to 4    c = a + b    a = b    b = cnext nprint(b)
(a) Complete4 marks

the trace table: one row at the end of each pass, then one row for print. Leave n blank in the print row.

nabcoutput
1122
(b) State1 mark

the value printed if the loop runs for n = 1 to 6.

(c) Explain2 marks

why the order of lines 5 and 6 matters.

0 words
(d) Write3 marks

a loop that prints every even number from 2 to 20.

  • 16interactive lessons
  • 206practice questions
  • 77units on the course map

OCR H446

In the course

16 topics

  • Computational thinking1
  • Programming5
  • Data representation4
  • Boolean algebra and logic3
  • Data structures and algorithms3

A-level Computer Science Pro, OCR H446

Get an A or your money back. Terms

£119

Price rises to £199 on 1 January. Save £80 by joining before then.

By paying you agree to our Terms and get access straight away, which ends your 14-day cancellation right.

No VAT is charged.

Try it free

Start free

Independent practice for OCR A-level Computer Science (H446), not endorsed by OCR.

Privacy · Terms