Skip to content

Course home

Sign up

Data types and structures

EasyMedium
12345678910111213141516171819202122232425262728293031323334
Question 24

Oliver wants to digitise his bakery recipes to manage his inventory and production.

Here is Oliver's recipe for a Cranberry Walnut Sourdough loaf:

Oliver's Sourdough Bakery: Cranberry Walnut Sourdough

  • 0.5 kilograms - Strong white flour
  • 0.35 litres - Water
  • 0.15 kilograms - Sourdough starter
  • 10 grams - Salt
  • 0.12 kilograms - Dried cranberries
  • 0.08 kilograms - Chopped walnuts
  • 1 Tablespoon - Honey

He stores his recipes on a computer system. One variable has already been created to hold the weight of the flour, and another variable has been created to hold the weight of the cranberries.

State two additional variables that need to be created to store the remaining ingredient data for this recipe.

[2]
Markscheme

Data types and structures Questions

  1. GCSE
  2. /Computer Science
  3. /Data types and structures

44 exam-style questions on Edexcel GCSE Computer Science Data types and structures, covering Primitive and structured data types, Using variables and constants, and Manipulating strings. Each one has a worked solution and a mark scheme showing where the marks go.

Question bank