Question bank › GCSE Computer Science › Programming fundamentals

Programming fundamentals: variables, operators, sequence, selection, iteration

Answer on paper first, then reveal the mark scheme one mark at a time.

1Grade 4–54 marks

(a) State the result of each expression.

(i) 17 MOD 5 [1]

(ii) 17 DIV 5 [1]

(iii) 2 ^ 4 [1]

(b) The code below uses iteration.

do
    pin = input("Enter PIN")
until pin == "4821"

State the type of iteration used. [1]

Still losing marks on this topic?

Book a free introductory session and we'll find exactly which step is costing you.

Book a free intro