Attributes of an object

Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.

Attributes of an object

Name:
Date:
Class:

Quick Questions

Shade in the A or B circle for each question.

1. Which one is an attribute of a pet?
A Colour: brown
B Feed the pet
2. Which one is an attribute of a phone?
A Make a call
B Screen size: 6.1 inches
3. Which statement is correct?
A Each attribute holds one fact
B Each attribute holds many facts mixed together
4. A bike is described as 'Red, 21 gears, 26 inch wheels'. What is the better way to record this?
A One attribute that holds all three facts
B Three attributes: colour, gears, wheel size
5. Which one is an attribute of a bike?
A Number of gears
B Ride to school

Match the Pairs

Draw a line connecting each item on the left to its match on the right.

Left columnRight column
1Pet: name, colour, age ALists three attributes that describe a pet
2Phone: brand, model, storage BBike: colour = Red, size = 26
3Each attribute holds only one fact, so a bike's colour and size are kept as two separate attributes COne attribute holds several values. The pet's name should be a single fact, and the other names do not describe the same pet.
4Choose only the attributes that matter for the job, such as a pet's name and age for a vet check-in list DLists three attributes that describe a phone
5Bike: colour and size = Red 26 ETwo facts are squashed into one attribute. Colour and size should be separate attributes, each with one value.
6Pet: name = Max, Buddy, Rex FPet: name, age

Definitions

attribute

Fill in the Blanks

Complete each line of code by filling in the missing parts.

1.
Object: Pet Attribute: name = "Milo" _________: colour = "grey"
2.
______: Bike Attribute: colour = "red" Attribute: wheels = 2
3.
Object: Bike Attribute: colour = "red" Attribute: wheels = _
4.
Object: Pet Attribute: name = "Milo" Attribute: ______ = "grey"
5.
Object: Phone Attribute: _____ = "Samsung" Attribute: storage = 128

Spot the Error

Shade in the letter of the line that contains an error.

Question 1
A Object: Pet
B name: Bella
C colour: brown
D age: 4 and likes fish
Question 2
A Object: Phone
B brand: Apple
C colour: black
D wheels: 2
Question 3
A Object: Bike
B brand: Giant
C colour: red, size: large
D wheels: 2
Question 4
A Object: Pet
B name: Milo
C age: brown
D colour: black
Question 5
A Goal: sell bikes online
B Object: Bike
C owner's lunch: pizza
D size: medium

Answer Key

Attributes of an object
Section A: Quick Questions
Q1
A — Colour: brown
Q2
B — Screen size: 6.1 inches
Q3
A — Each attribute holds one fact
Q4
B — Three attributes: colour, gears, wheel size
Q5
A — Number of gears
Section B: Match the Pairs
Q1
Pet: name, colour, age → Lists three attributes that describe a pet
Q2
Phone: brand, model, storage → Lists three attributes that describe a phone
Q3
Each attribute holds only one fact, so a bike's colour and size are kept as two separate attributes → Bike: colour = Red, size = 26
Q4
Choose only the attributes that matter for the job, such as a pet's name and age for a vet check-in list → Pet: name, age
Q5
Bike: colour and size = Red 26 → Two facts are squashed into one attribute. Colour and size should be separate attributes, each with one value.
Q6
Pet: name = Max, Buddy, Rex → One attribute holds several values. The pet's name should be a single fact, and the other names do not describe the same pet.
Section C: Definitions
Q1
attribute — One fact that describes an object, such as a pet's name, colour or age. Each attribute holds a single piece of information.
Section D: Fill in the Blanks
Q1
Object: Pet Attribute: name = "Milo" Attribute: colour = "grey"
Q2
Object: Bike Attribute: colour = "red" Attribute: wheels = 2
Q3
Object: Bike Attribute: colour = "red" Attribute: wheels = 2
Q4
Object: Pet Attribute: name = "Milo" Attribute: colour = "grey"
Q5
Object: Phone Attribute: brand = "Samsung" Attribute: storage = 128
Section E: Spot the Error
Q1
D — An attribute holds only one fact. 'age: 4 and likes fish' mixes two facts. It should be 'age: 4', with the food as its own attribute.
Q2
D — A phone does not have wheels, so this attribute does not describe the object. It should be a phone attribute such as 'storage: 128 GB'.
Q3
C — Each attribute is one fact on its own line. This line packs two attributes (colour and size) together. It should be 'colour: red'.
Q4
C — The value must match the attribute. 'brown' is a colour, not an age. It should be a number such as 'age: 3'.
Q5
C — Choose attributes that matter for the goal. A bike buyer does not need the owner's lunch. It should be a useful attribute such as 'price: $450'.