GoalMatch memory and software to their jobs, convert 8-bit binary and ASCII, and rebuild compressed data.
New words
RAM and ROM · RAM is volatile memory for what is in use now, and ROM is non-volatile memory that holds the boot-up instructionsoperating system · system software that manages the computer: interface, memory, accounts, files, running programs and devicesbyte · 8 bits, which can show the numbers 0 to 255data compression · storing data in a smaller space, for example by writing a repeated item once with its positions
Explanation
The CPU works with data held in primary memory. RAM is volatile: when the power goes off its contents are lost, so unsaved work disappears. ROM is non-volatile and holds the boot-up instructions that start the computer. The operating system manages the interface, the memory, the user accounts, the files and the programs running at the same time. Computers store everything as binary, and the places in a byte are worth 128, 64, 32, 16, 8, 4, 2 and 1. To read a byte, add the places that hold a 1. ASCII is a character set that gives each character a code, so text becomes numbers and then bits. Compression makes data smaller by writing a repeated item once with the places where it appears.
Place worth
128
64
32
16
8
4
2
1
Bit holds
0 or 1
0 or 1
0 or 1
0 or 1
0 or 1
0 or 1
0 or 1
0 or 1
Worked examples
Statement
Answer
holds the page you are typing right now
RAM (volatile)
holds the instructions that start the computer
ROM (non-volatile)
keeps each pupil’s files separate with accounts
operating system
joins the scattered pieces of a file
utility software
a spreadsheet
application software
Where does it belong? Five statements sorted into memory and software. The answers depend on whether the content is lost without power, and on whether the software looks after the computer or helps the user.
128
64
32
16
8
4
2
1
Working
01011010 as denary
0
1
0
1
1
0
1
0
64 + 16 + 8 + 2 = 90
177 as binary
1
0
1
1
0
0
0
1
128 + 32 + 16 + 1 = 177
Two conversions in a place-value table. The first row reads 01011010: the 1s are in the places 64, 16, 8 and 2. The second row writes 177: 128 fits, leaving 49. 64 does not fit, 32 does (17 left), 16 does (1 left), 8, 4 and 2 do not, and 1 does.
Character
ASCII code
8-bit binary
O
79
01001111
k
107
01101011
Text as binary. A program stores the word Ok. Using the code table O = 79 and k = 107, each character becomes one byte: 79 is 64 + 8 + 4 + 2 + 1 and 107 is 64 + 32 + 8 + 2 + 1. Capital and small letters have different codes.
Class activity
Bits at the table (no computer). Make eight paper cards with the numbers 128, 64, 32, 16, 8, 4, 2, 1, big enough to read. A partner says a number from 0 to 255. Turn the cards you need face up and the others face down, and read your pattern aloud. Swap: lay down a pattern and your partner adds the face-up cards. Then spell a three-letter word with the code table A = 65, B = 66, C = 67, D = 68, and write each letter as a byte. If you have a computer or tablet, an adult can show you a text file, which stores each letter as a code.
Practice
1
Write RAM or ROM: (a) loses its contents when the computer is switched off; (b) holds the boot-up instructions; (c) holds a game while you play it; (d) is non-volatile.
(a) RAM. (b) ROM. (c) RAM. (d) ROM.
2
Convert 11010010 to denary, and 75 to an 8-bit number. Show the working.
Place
128
64
32
16
8
4
2
1
Bit
1
1
0
1
0
0
1
0
11010010 = 128 + 64 + 16 + 2 = 210. 75 = 64 + 8 + 2 + 1, so the byte is 01001011.
3
Use A = 65, B = 66 and C = 67. A message arrives as 01000011 01000001 01000010. What word is it? Explain how you worked it out.
Byte 1
Byte 2
Byte 3
01000011
01000001
01000010
The first byte is 64 + 2 + 1 = 67, which is C. The second is 64 + 1 = 65, which is A. The third is 64 + 2 = 66, which is B. The word is CAB.
4
Rebuild the data from the compressed table. Then say why this is useful.
Item
Positions
clap
2, 5
drum
1, 3
snap
4, 6
Position 1 drum, 2 clap, 3 drum, 4 snap, 5 clap, 6 snap. The rebuilt list is drum, clap, drum, snap, clap, snap. Compression makes the file smaller, so it is quicker to send and takes less space.