Question bank › GCSE Computer Science › Programming

Data structures: 1D/2D arrays & records

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

1Grade 6–76 marks

A library stores data about books using this record structure.

RECORD Book
   title : String
   year : Integer
   onLoan : Boolean
ENDRECORD

(a) Write AQA pseudocode to create a variable b1 holding a Book record for Holes, published in 1998, which is currently on loan. [2]

(b) The array library contains many Book records. Write an algorithm, using AQA pseudocode, that outputs the title of every book that was published before 2000 and is not on loan. [4]

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