AdvertisementYour brand could be hereYour brand hereOn every Darslab page · students, parents and teachersinfo@darslab.comAsk for pricesPricesinfo@darslab.com
☰ Year plan · Computing

Why store data?

Week 4 · Unit 2: Be a data analyst · 3 lessons
1

Sorting into groups

Computing 2: Unit 2, pp. 24–39
GoalSort things into groups and say that a group is also called a category.
New words
data · facts such as names, colours or numberscategory · a group of things that are alikesort · to put things into groups
Explanation

Data means facts, such as names, colours or numbers. We can sort data into groups. A group is also called a category. The things in one category are alike in some way. Food can go into groups such as fruit, vegetables and drinks. We can sort the same things in different ways, for example by kind or by colour.

FruitVegetablesDrinks
Worked examples
HeadHandsFeet
Clothes can be sorted by the part of the body where we wear them. There are three categories.
FoodKindColour
applefruitred
bananafruityellow
strawberryfruitred
carrotvegetableorange
We can sort the same foods in two ways. By kind: fruit are apple, banana and strawberry, and carrot is a vegetable. By colour: red are apple and strawberry, yellow is banana and orange is carrot.
redroundstrawberryorangeapple
A thing can go in more than one category. An apple is red and it is round, so it goes in both groups. A strawberry is red but not round. An orange is round but not red.
Class activity

Button sort: find 12 or more small things at home, such as buttons, coins, pasta shapes or socks. Sort them into groups by colour. Count each group and write the number. Mix them up and sort them again a different way, for example by size or by shape. Which way gave you the most groups? Which way was quicker?

Practice
1
Sort these four foods into fruit and vegetables: pear, potato, grapes, onion.
pearpotatograpesonion
2
Name two different ways to sort a box of buttons.
3
What is another word for a group of things that are alike?
4
Which two foods belong in the green group?
tomatocucumberlemonbroccoli