Skip to main content
A-LevelComputer ScienceProgramming9618/21 · May/June 2025 · Q112 Marks

A program is being developed to help the manager of a shop control the stock.

  1. (a)An identifier table has been used during the design stage. Complete the identifier table: Example value Explanation Variable name Data type "Fruit" a category of stock that is sold in the shop 20/02/2025 when an item was sold 12.67 the cost of an item TRUE to indicate if an item is in stock[4]
  2. (b)A module Sales () is part of the stock control program. The table contains pseudocode extracts from the module Sales() Each extract may include all or part of: • assignment • selection • iteration (repetition). Complete the table by placing one or more ticks (✔) in each row: Pseudocode extract Assignment Selection Iteration Result ← CalculateTotal() WHILE IsClosed REPEAT INPUT Value UNTIL Sales[4] > Value IF Sales[Current] <= 150 THEN Discount ← TRUE ENDIF CASE OF Option[5]
  3. (c)Decomposition has been used to design the program to help the shop manager control the stock. Describe decomposition.[3]

Mark scheme

Marking points from the official mark scheme (May/June 2025). The mark or mark type is shown in brackets.

  1. [4] Category STRING
  2. [4] DateSold DATE
  3. [4] (Item)Cost/Price REAL
  4. [4] (Item)InStock BOOLEAN
  5. [1] Result ← CalculateTotal() Assignment: ✔
  6. [1] WHILE IsClosed Iteration: ✔
  7. [1] REPEAT ... UNTIL Sales[4] > Value Assignment: ✔ Iteration: ✔
  8. [1] IF Sales(Current) <= 150 THEN ... ENDIF Selection: ✔
  9. [1] CASE OF Option Selection: ✔
  10. [1] Breaking down a problem into sub problems
  11. [1] In order to explain / understand the process/task of how a (stock control) can be managed in more detail
  12. [1] Leading to the concept of the program designed as a series of modules / procedures / functions // or by example of different stock control modules
  13. [1] Makes the program easier to test / debug

Write your answer and get it marked

On Oracle Prep you can write or photograph your own answer and have it marked by AI against this mark scheme, with feedback on what you missed.

Sign up free →

About this question

Topic
Programming, A-Level Computer Science (syllabus 9618). Structured question, 12 marks.
Source
A-Level Computer Science, May/June 2025 Paper 2 Variant 1, question 1.

Questions and mark schemes are from past examination papers and remain the copyright of the exam board. How Oracle Prep builds its content

Related Computer Science questions

© 2026 Oracle Prep