ExamBank Scot · N5 Computing Science question bank · All N5 Computing Science questions

N5 Computing Science 2024 Question 1

2 marks · Data types and structures

A confectionery company requires a program to store information about boxed chocolates. Complete the table below to state which types of variable should be used. Variable Type of variable chocolateName inStock Boolean numberOfChocolatesInBox

Marking scheme

• string • integer Accept str, int chocolateName: string numberOfChocolatesInBox: integer

Previous question: N5 Computing Science 2023 Question 20

Next question: N5 Computing Science 2024 Question 2