Term pack
Year 8 Computing
Name: ________________________
Skills in this pack
- Bigger binary numbers
- Adding binary numbers
- Reading spreadsheet formulas
- The internet and the web
- HTML attributes and links
- HTML lists and tables
- Variables in a program
- Tracing a loop with a total
- Choosing between more than two things
- Combining conditions with and, or and not
Free at www.arenapublications.com/learn — no account, no ads, ever.
Year 8 Computing · 1 of 10
Bigger binary numbers
Read and write binary numbers with several places, and work out how many different values a given number of bits can hold.
Before you start
Move along this line and think about which binary places you would need to reach each point.
The points that need only a single 1 — 1, 2, 4, 8, 16, 32 — are the place values themselves. Everything else is built by adding a few of them together.
1.Sort each binary number by whether it is odd or even.
Groups: Odd · Even
- 10000
- 1011
- 1001
- 1100
- 10101
- 11110
2.How many different values can be written with 5 bits?
3.What is the binary number "1010101" worth as an ordinary number?
4.The binary number "101100" sits at one of these points. Tap it.
Mark the line with an X.
5.Put these binary numbers in order, smallest first.
- 10001
- 100100
- 1010
- 101
- 1101
6.Match each binary number to its ordinary value.
- 1000
- 1111
- 10010
- 11000
- 100000
- 8
- 18
- 24
- 15
- 32
7.Write the number 37 in binary.
8.A byte is eight bits. How many different values can one byte hold?
- a) 128
- b) 64
- c) 512
- d) 256
Bigger binary numbers · Year 8 Computing · www.arenapublications.com/learn
Year 8 Computing · 2 of 10
Adding binary numbers
Add two binary numbers place by place, carrying into the next place whenever a column comes to more than one.
1.Which of these additions gives an answer with more places than both of the numbers being added?
- a) "11" and "1"
- b) "101" and "10"
- c) "100" and "11"
- d) "10" and "1"
2.Put these binary additions in order of their answers, smallest first.
- 110 + 100
- 10 + 1
- 11 + 10
- 1000 + 101
- 100 + 11
3.Add the binary numbers "110" and "11". Write the answer in binary.
4.Adding "111" and "1" gives an answer with how many binary places?
- a) 4
- b) 5
- c) 3
- d) 2
5.Add the binary numbers "1010" and "1010". Write the answer in binary.
6.Match each binary addition to its answer.
- 1 + 10
- 11 + 11
- 100 + 100
- 101 + 10
- 1001 + 11
- 1100
- 11
- 1000
- 111
- 110
7.Sort each addition by whether its right-hand column produces a carry.
Groups: Produces a carry · No carry
- 11 + 1
- 100 + 10
- 101 + 11
- 10 + 1
- 1000 + 111
- 1001 + 1001
8.Add the binary numbers "110" and "10". Write the answer in binary.
Adding binary numbers · Year 8 Computing · www.arenapublications.com/learn
Year 8 Computing · 3 of 10
Reading spreadsheet formulas
Read a spreadsheet formula, work out which cells it refers to, and say what number it will show.
1.A sheet holds A1 = 4, A2 = 6 and A3 = 9. What number does the formula "=A1+A2" show?
2.Sort each formula by whether it adds its cells together or multiplies them.
Groups: Adds · Multiplies
- =SUM(C1:C5)
- =B2*B3
- =D1*D2
- =A4+B4
- =A1+A2
- =E1*E2
3.A sheet holds A1 = 2, A2 = 5, A3 = 8 and A4 = 1. What number does the formula "=SUM(A1:A4)" show?
4.A sheet holds A1 = 10 and A2 = 4. Match each formula to the number it shows.
- =A1+A2
- =A1-A2
- =A1*A2
- =A1/A2
- =A2*A2
- 6
- 14
- 40
- 16
- 2.5
5.A sheet holds A1 = 9 and A2 = 3, and a cell holding "=A1/A2" is showing 3. You then change A1 to 12. What does that cell show now?
- a) 12
- b) It keeps showing 3 until the formula is typed in again
- c) 4
- d) 3
6.A sheet holds A1 = 3, A2 = 8 and A3 = 2. Put these formulas in order of the number each one shows, smallest first.
- =SUM(A1:A3)
- =A1-A3
- =A2*A3
- =A1+A2
- =A3*A1
7.A sheet holds A1 = 5, A2 = 5 and A3 = 5. Which of these formulas does NOT show 15?
- a) =A1+A2+A3
- b) =SUM(A1:A3)
- c) =A1*3
- d) =A1+A2
8.A cell sits in column C, in the fourth row down. Write its cell reference.
Reading spreadsheet formulas · Year 8 Computing · www.arenapublications.com/learn
Year 8 Computing · 4 of 10
The internet and the web
Tell the internet apart from the web, and say what has to happen between two machines before a page appears on your screen.
1.Sort each job by whether the browser on your own device does it, or the machine holding the page does it.
Groups: The browser · The machine holding the page
- Paints the words and pictures onto the screen
- Reads the address that was typed in
- Picks out the right page from the ones it holds
- Stores the page until somebody asks for it
- Starts the request off
- Answers with a copy of the page
2.Someone unplugs the cable that joins a school to the company supplying its connection. Which of these still works?
- a) Sending a message to a school in the next city
- b) Joining a video call with another school
- c) Opening a file kept on the school's own lab network
- d) Opening a page from a site in another country
3.Which of these cannot be done at all by a device that is joined to nothing?
- a) Adding two numbers in a calculator app
- b) Drawing a picture in a paint program
- c) Typing a letter and saving it
- d) Opening a page it has never opened before
4.Sort each one by whether it is a page you read, or a piece of the machinery underneath that carries pages about.
Groups: A page you read · Machinery underneath
- The connection from a building to the company that supplies it
- A school's home page opened in a browser
- The undersea cables that join one country to another
- A page of exam notices with links to more pages
- The routers that pass messages along from one link to the next
- A page of photographs on a library site
5.Sort each one by whether it runs on the device in front of you, or is a machine somewhere else that answers it.
Groups: Runs on your own device · A machine elsewhere that answers
- The browser you type an address into
- The machine that stores those messages until you ask for them
- The computer a shop keeps its own pages on
- A game running on your tablet
- The machine that keeps the game's list of top scores
- The app that shows your messages
6.A shop's page opens on your phone even though the shop's own machine is in another city. Where was that page before you asked for it?
- a) On the shop's machine, waiting for someone to ask
- b) Nowhere — the browser invents it from the address
- c) Inside your phone the whole time
- d) On the nearest phone tower
7.Opening one page sends a request out and brings a copy of the page back. Counting the request going out and the page coming back, how many journeys across the network is that?
8.Put these in the order they happen when someone opens a web page.
- The machine holding the page finds the one that was asked for
- The browser draws the page on the screen
- A copy of the page travels back
- The address is typed in and entered
- A request for that page travels out across the network
The internet and the web · Year 8 Computing · www.arenapublications.com/learn
Year 8 Computing · 5 of 10
HTML attributes and links
Read the attributes inside an opening tag, and work out where a link goes and which words a reader clicks to follow it.
1.An attribute is a name, an equals sign and a value in quotes, written inside the opening tag. How many attributes does “<img src="cat.png" alt="A cat" width="200">” have?
2.Match each attribute name to what it says.
- href
- src
- alt
- width
- Words to use in place of a picture
- How wide to draw a picture
- Which file a picture comes from
- Which page the link opens
3.A page holds “<a href="results.html">Click here</a>”. A reader clicks the words Click here. Which file opens?
4.In the picture tag “<img src="kite.png" alt="A paper kite">”, which file holds the picture?
5.Which of these is written as an attribute usually is — a name, an equals sign, then a value inside quotes?
- a) href home.html
- b) href-home.html
- c) href="home.html"
- d) "href"=home.html
6.Put these four pieces in the order they are written in the link “<a href="art.html">Art</a>”.
- Art
- <a
- </a>
- href="art.html">
7.A link is written “<a href="sport.html">Music</a>”. What happens when a reader clicks the word Music?
- a) Both pages open, one after the other
- b) The page music.html opens
- c) Nothing opens, because the two do not agree
- d) The page sport.html opens
8.In the link “<a href="notices.html">Notices</a>”, which word appears on the page for the reader to click?
HTML attributes and links · Year 8 Computing · www.arenapublications.com/learn
Year 8 Computing · 6 of 10
HTML lists and tables
Read an HTML list or table, count its items, rows and cells, and say which of its tags sits inside which.
Before you start
Every cell of this table has a name — find out what each one is called. Notice that the name says which row first, and only then how far along.
- 1. Row 1, cell 1
- 2. Row 1, cell 2
- 3. Row 1, cell 3
- 4. Row 2, cell 1
- 5. Row 2, cell 2
- 6. Row 2, cell 3
- 7. Row 3, cell 1
- 8. Row 3, cell 2
- 9. Row 3, cell 3
Every cell needs its own tag, and every row needs one as well — so a grid this size takes nine cell tags wrapped in three row tags, not nine tags on their own.
1.Which tag closes “<li>”?
2.In “<ol><li>Wash</li><li>Cut</li><li>Cook</li><li>Serve</li></ol>”, what number will the browser print beside Cook?
3.This table has three rows and three cells in each row. Tap the cell in the second row, third along.
Write the number of the part.
4.How many rows does this table have: “<table><tr><td>1</td><td>2</td></tr><tr><td>3</td><td>4</td></tr><tr><td>5</td><td>6</td></tr></table>”?
5.A table is built from 5 row tags, and each row holds 3 cell tags. How many cells is that altogether?
6.How many cells does that same table hold altogether: “<table><tr><td>1</td><td>2</td></tr><tr><td>3</td><td>4</td></tr><tr><td>5</td><td>6</td></tr></table>”?
7.In “<ul><li>Red</li><li>Blue</li><li>Green</li><li>Black</li><li>White</li></ul>”, how many item tags are there altogether, counting the opening and closing tags separately?
8.How many items are in this list: “<ul><li>Pen</li><li>Ruler</li><li>Book</li><li>Bag</li></ul>”?
HTML lists and tables · Year 8 Computing · www.arenapublications.com/learn
Year 8 Computing · 7 of 10
Variables in a program
Follow what a named value holds as a program changes it line by line, and say what it holds at the end.
1.Put these four lines in an order that leaves total holding 14 and then shows it.
- add 8 to total
- set total to 0
- add 6 to total
- print total
2.Sort each line by whether it changes what total holds.
Groups: Changes it · Leaves it as it was
- take 2 away from total
- show total on the screen
- print total
- add 5 to total
- set total to 0
- compare total with 10
3.A program says: set a to 6; set b to 4; set a to a plus b. What does a hold now?
4.A program says: set a to 2; set b to 5; set c to a plus b; set a to 10. What does c hold now?
5.A program says: set n to 12; take 4 away from n; take 3 away from n. What does n hold now?
6.A program says: set a to 6; set b to 4; set a to a plus b. What does b hold now?
7.A program says: set score to 5; add 3 to score. What does score hold now?
8.A program says: set price to 20; set price to price times 2. What does price hold now?
- a) 20
- b) 40
- c) 22
- d) 2
Variables in a program · Year 8 Computing · www.arenapublications.com/learn
Year 8 Computing · 8 of 10
Tracing a loop with a total
Trace a loop that keeps a running total, and say what the total holds once the loop has finished.
1.A program says: set total to 1; repeat 4 times: double total. What does total hold at the end?
2.A program says: set total to 0; repeat 5 times: add 2 to total. After the loop has finished, it prints total once. How many numbers appear on the screen?
- a) None
- b) Five
- c) Ten
- d) One
3.A program says: set total to 0; repeat 4 times: add 3 to total. Someone answers 3, because 3 was the last thing added. What is wrong with that?
- a) The total keeps everything added before it, so it comes to 12
- b) Nothing is wrong — 3 is right
- c) The loop only ever runs once
- d) The total starts again from nothing each time round
4.A program says: set total to 0; repeat 5 times: add 2 to total and then print total. How many numbers appear on the screen?
5.Each of these programs starts with total holding 0. Match each loop to the total it finishes with.
- repeat 3 times: add 4 to total
- repeat 5 times: add 4 to total
- repeat 4 times: add 9 to total
- repeat 6 times: add 5 to total
- repeat 2 times: add 25 to total
- 50
- 36
- 12
- 20
- 30
6.A program says: set total to 2; repeat 5 times: add 6 to total. What does total hold at the end?
7.A program says: set total to 100; repeat 5 times: take 8 away from total. What does total hold at the end?
8.Each of these programs starts with total holding 0. Sort each loop by whether it finishes with total above 30.
Groups: Above 30 · 30 or below
- repeat 2 times: add 8 to total
- repeat 5 times: add 4 to total
- repeat 4 times: add 9 to total
- repeat 3 times: add 5 to total
- repeat 8 times: add 5 to total
- repeat 7 times: add 6 to total
Tracing a loop with a total · Year 8 Computing · www.arenapublications.com/learn
Year 8 Computing · 9 of 10
Choosing between more than two things
Follow a chain of tests in which the first one that comes out true wins, and say which branch a program takes.
1.In that same program — if the number is more than 10, print "Big"; else if the number is more than 100, print "Huge"; otherwise print "Small" — is there any number at all that makes it print Huge?
- a) Yes, any number above 100
- b) No, because anything above 100 is already above 10
- c) Yes, but only the number 100 itself
- d) Yes, any number above 10
2.A program says: if the score is at least 90, print "Gold"; else if the score is at least 70, print "Silver"; else if the score is at least 50, print "Bronze"; otherwise print "Try again". The score is 89. What does it print?
3.A program says: if the number is less than 0, print "Negative"; else if the number is 0, print "Zero"; otherwise print "Positive". The number is 0. What does it print?
- a) Zero
- b) Nothing at all
- c) Positive
- d) Negative
4.A program says: if the score is at least 90, print "Gold"; else if the score is at least 70, print "Silver"; else if the score is at least 50, print "Bronze"; otherwise print "Try again". Sort each score by what the program prints for it.
Groups: Gold · Silver · Bronze · Try again
- 96
- 71
- 90
- 12
- 55
- 50
5.A program says: if the score is at least 90, print "Gold"; else if the score is at least 70, print "Silver"; else if the score is at least 50, print "Bronze"; otherwise print "Try again". The score is 70. What does it print?
6.A program says: if the score is at least 90, print "Gold"; else if the score is at least 70, print "Silver"; else if the score is at least 50, print "Bronze"; otherwise print "Try again". The score is 95. What does it print?
7.A program says: if the age is at least 18, print "Adult"; else if the age is at least 13, print "Teenager"; else if the age is at least 5, print "Child"; otherwise print "Toddler". Match each age to what the program prints.
- 20
- 13
- 9
- 3
- Teenager
- Child
- Adult
- Toddler
8.A program says: if the score is at least 90, print "Gold"; else if the score is at least 70, print "Silver"; else if the score is at least 50, print "Bronze"; otherwise print "Try again". The score is 50. What does it print?
Choosing between more than two things · Year 8 Computing · www.arenapublications.com/learn
Year 8 Computing · 10 of 10
Combining conditions with and, or and not
Work out whether a condition joined by and, or or not comes out true, and which branch a program takes because of it.
1.A program prints "Go" only when the light is green and the road is clear, and prints "Wait" otherwise. Sort each situation by what it prints.
Groups: Go · Wait
- The light is red and the road is clear
- The light is green and nothing is standing on the road
- The light is red and the road is blocked
- The light is green and the road is clear
- The light is green and the road is blocked
2.A program says: if the number is more than 10 and less than 20, print "Middle"; otherwise print "Outside". The number is 12. What does it print?
3.Match each condition to the smallest whole number that makes it true.
- more than 3 and more than 7
- more than 3 or more than 7
- at least 5 and at least 9
- at least 5 or at least 9
- more than 0 and at least 2
- 8
- 2
- 4
- 9
- 5
4.A condition says: not (the number is more than 10). The number is 3. Is the condition true?
- a) Only when the number is 10
- b) No
- c) Yes
- d) There is no way to tell
5.A condition says: the number is more than 10 and the number is less than 20. The number is 15. Is the condition true?
- a) Only if the two halves are equal
- b) There is no way to tell
- c) No
- d) Yes
6.A program says: if the number is not more than 10, print "Small"; otherwise print "Large". The number is 30. What does it print?
7.A condition says: the number is more than 50 and the number is less than 10. Which numbers make it true?
- a) Every number
- b) No number at all
- c) The numbers between 10 and 50
- d) Only 10 and 50 themselves
8.A condition says: the number is more than 5 or the number is more than 50. Which numbers make it true?
- a) Every number above 5
- b) Only the numbers between 5 and 50
- c) No number at all
- d) Only the numbers above 50
Combining conditions with and, or and not · Year 8 Computing · www.arenapublications.com/learn
Answer keys — Year 8 Computing
In the same order as the worksheets.
Bigger binary numbers
- 1. 1011 → Odd; 1100 → Even; 10101 → Odd; 11110 → Even; 1001 → Odd; 10000 → Even
- 2. 32
- 3. 85
- 4. 44
- 5. 1. 101 2. 1010 3. 1101 4. 10001 5. 100100
- 6. 1000 → 8; 1111 → 15; 10010 → 18; 11000 → 24; 100000 → 32
- 7. 100101
- 8. d) 256
Adding binary numbers
- 1. a) "11" and "1"
- 2. 1. 10 + 1 2. 11 + 10 3. 100 + 11 4. 110 + 100 5. 1000 + 101
- 3. 1001
- 4. a) 4
- 5. 10100
- 6. 1 + 10 → 11; 11 + 11 → 110; 100 + 100 → 1000; 101 + 10 → 111; 1001 + 11 → 1100
- 7. 1001 + 1001 → Produces a carry; 10 + 1 → No carry; 11 + 1 → Produces a carry; 100 + 10 → No carry; 101 + 11 → Produces a carry; 1000 + 111 → No carry
- 8. 1000
Reading spreadsheet formulas
- 1. 10
- 2. =A1+A2 → Adds; =B2*B3 → Multiplies; =SUM(C1:C5) → Adds; =D1*D2 → Multiplies; =A4+B4 → Adds; =E1*E2 → Multiplies
- 3. 16
- 4. =A1+A2 → 14; =A1-A2 → 6; =A1*A2 → 40; =A1/A2 → 2.5; =A2*A2 → 16
- 5. c) 4
- 6. 1. =A1-A3 2. =A3*A1 3. =A1+A2 4. =SUM(A1:A3) 5. =A2*A3
- 7. d) =A1+A2
- 8. C4
The internet and the web
- 1. Reads the address that was typed in → The browser; Stores the page until somebody asks for it → The machine holding the page; Paints the words and pictures onto the screen → The browser; Picks out the right page from the ones it holds → The machine holding the page; Starts the request off → The browser; Answers with a copy of the page → The machine holding the page
- 2. c) Opening a file kept on the school's own lab network
- 3. d) Opening a page it has never opened before
- 4. A school's home page opened in a browser → A page you read; The undersea cables that join one country to another → Machinery underneath; A page of exam notices with links to more pages → A page you read; The connection from a building to the company that supplies it → Machinery underneath; A page of photographs on a library site → A page you read; The routers that pass messages along from one link to the next → Machinery underneath
- 5. The browser you type an address into → Runs on your own device; The computer a shop keeps its own pages on → A machine elsewhere that answers; The app that shows your messages → Runs on your own device; The machine that stores those messages until you ask for them → A machine elsewhere that answers; A game running on your tablet → Runs on your own device; The machine that keeps the game's list of top scores → A machine elsewhere that answers
- 6. a) On the shop's machine, waiting for someone to ask
- 7. 2
- 8. 1. The address is typed in and entered 2. A request for that page travels out across the network 3. The machine holding the page finds the one that was asked for 4. A copy of the page travels back 5. The browser draws the page on the screen
HTML attributes and links
- 1. 3
- 2. href → Which page the link opens; src → Which file a picture comes from; alt → Words to use in place of a picture; width → How wide to draw a picture
- 3. results.html
- 4. kite.png
- 5. c) href="home.html"
- 6. 1. <a 2. href="art.html"> 3. Art 4. </a>
- 7. d) The page sport.html opens
- 8. Notices
HTML lists and tables
- 1. </li>
- 2. 3
- 3. 6 — Row 2, cell 3
- 4. 3
- 5. 15
- 6. 6
- 7. 10
- 8. 4
Variables in a program
- 1. 1. set total to 0 2. add 6 to total 3. add 8 to total 4. print totalAlso accepted, in full:
- 1. set total to 0 2. add 8 to total 3. add 6 to total 4. print total
- 2. add 5 to total → Changes it; print total → Leaves it as it was; set total to 0 → Changes it; show total on the screen → Leaves it as it was; take 2 away from total → Changes it; compare total with 10 → Leaves it as it was
- 3. 10
- 4. 7
- 5. 5
- 6. 4
- 7. 8
- 8. b) 40
Tracing a loop with a total
- 1. 16
- 2. d) One
- 3. a) The total keeps everything added before it, so it comes to 12
- 4. 5
- 5. repeat 3 times: add 4 to total → 12; repeat 5 times: add 4 to total → 20; repeat 4 times: add 9 to total → 36; repeat 6 times: add 5 to total → 30; repeat 2 times: add 25 to total → 50
- 6. 32
- 7. 60
- 8. repeat 4 times: add 9 to total → Above 30; repeat 3 times: add 5 to total → 30 or below; repeat 8 times: add 5 to total → Above 30; repeat 2 times: add 8 to total → 30 or below; repeat 7 times: add 6 to total → Above 30; repeat 5 times: add 4 to total → 30 or below
Choosing between more than two things
- 1. b) No, because anything above 100 is already above 10
- 2. Silver
- 3. a) Zero
- 4. 96 → Gold; 90 → Gold; 71 → Silver; 55 → Bronze; 50 → Bronze; 12 → Try again
- 5. Silver
- 6. Gold
- 7. 20 → Adult; 13 → Teenager; 9 → Child; 3 → Toddler
- 8. Bronze
Combining conditions with and, or and not
- 1. The light is green and the road is clear → Go; The light is green and the road is blocked → Wait; The light is red and the road is clear → Wait; The light is red and the road is blocked → Wait; The light is green and nothing is standing on the road → Go
- 2. Middle
- 3. more than 3 and more than 7 → 8; more than 3 or more than 7 → 4; at least 5 and at least 9 → 9; at least 5 or at least 9 → 5; more than 0 and at least 2 → 2
- 4. c) Yes
- 5. d) Yes
- 6. Large
- 7. b) No number at all
- 8. a) Every number above 5
Year 8 Computing · www.arenapublications.com/learn