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

Year round-up

Week 30 · Review: Term 3 · 3 lessons
2

Inside the machine, in bits

Computing 8: Topics 3.1–4.5, pp. 230–299
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 worth1286432168421
Bit holds0 or 10 or 10 or 10 or 10 or 10 or 10 or 10 or 1
Worked examples
StatementAnswer
holds the page you are typing right nowRAM (volatile)
holds the instructions that start the computerROM (non-volatile)
keeps each pupil’s files separate with accountsoperating system
joins the scattered pieces of a fileutility software
a spreadsheetapplication 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.
1286432168421Working
01011010 as denary0101101064 + 16 + 8 + 2 = 90
177 as binary10110001128 + 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.
CharacterASCII code8-bit binary
O7901001111
k10701101011
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.
2
Convert 11010010 to denary, and 75 to an 8-bit number. Show the working.
Place1286432168421
Bit11010010
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 1Byte 2Byte 3
010000110100000101000010
4
Rebuild the data from the compressed table. Then say why this is useful.
ItemPositions
clap2, 5
drum1, 3
snap4, 6