Question bank › GCSE Computer Science › Programming

Data types & arithmetic operations (DIV, MOD)

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

1Grade 1–34 marks

A cinema booking program stores the data below. State the most appropriate data type for each item. [4]

(a) The number of seats booked
(b) The price of a ticket, e.g. 7.50
(c) Whether the customer has paid
(d) The customer's postcode

2Grade 1–34 marks

(a) State the result of 17 DIV 5. [1]

(b) State the result of 17 MOD 5. [1]

(c) Write a Boolean expression, in AQA pseudocode, that is True when the integer variable n is even. [1]

(d) A two-dimensional array is declared as:

grid ← [[3, 8, 1], [6, 2, 9]]

State the value of grid[1][2]. [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