Question 8
AQA Computer Science June 2019 Paper 1A level6 marks
On the specification
- 8.1
- 4.4 Theory of computation
- 8.2
- 4.4 Theory of computation
- 8.3
- 4.4 Theory of computation
- 8.4
- 4.4 Theory of computation
Question text
8 A set is an unordered collection of values in which each value occurs at most once. The items in the game can be described using sets. The set A contains all the items in the game. The set B contains all the items that have “use” in their Commands. The set C contains all the items that have “gettable” in their Status. The set D contains all the items in the player’s inventory. The set E contains all the items which have a Location equal to the CurrentLocation of the player and that have “usable” in their Status. The set F contains all the items which have a Location equal to the CurrentLocation. Four operations that can be performed on sets are union, difference, intersection and membership. 8.1 Explain how the operations can be used with some of the sets A–F to produce the set of items that the player can use in the current game state. [3 marks] 8.2 The set described in question 08.1 is a proper subset of some of the sets A–F. List all of the sets (A–F) that it is a proper subset of. [1 mark] 8.3 Explain why the intersection of sets F and C does not contain all the items that the player can currently get. [1 mark] 8.4 Explain the difference between a subset and a proper subset. [1 mark]