Workbook Number System
Workbook Number System
2210
Number System Workbook by
Inqilab Patel
O/A LevelComputer
Inqilab Patel
Page 2
ruknuddin.com
O/A LevelComputer
Inqilab Patel
28
256
27
128
128
64
Position
Binary No
tation
211
210
2048 1024
26
64
32
25
32
16
24
16
23
8
22
4
21
2
20
1
Page 3
ruknuddin.com
O/A LevelComputer
Inqilab Patel
Zero
One
Two
Three
Four
Five
Six
Seven
Eight
Nine
Ten
Eleven
Twelve
Thirteen
Fourteen
Fifteen
Sixteen
Seventeen
Binary
0
1
10
11
100
101
110
111
1000
1001
1010
1011
1100
1101
1110
1111
10000
10001
Denary
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
1st
160=1
Hexadecimal
0
1
2
3
4
5
6
7
8
9
A
B
C
D
E
F
10
11
Page 4
ruknuddin.com
O/A LevelComputer
Inqilab Patel
Conversion:
Convert a denary number into a binary number:
To convert a denary number into a binary number, create a binary notation in column diagram where the l
eftmost column heading is greater than the denary number and follow these steps:
Start on the left of the diagram.
If the column heading is less than the denary number:
a. Put a 1 in the column.
b. Subtract the column heading from the denary number.
c. Move to the next column to the right.
3. d. Go to step 2.
4. If the column heading is greater than the number:
a. Put a 0 in the column.
b. Move to the next column to the right.
c. Go to step 2.
You are normally only expected to be able to do this with numbers up to 255, because that is the biggest
number that can be stored in one byte. You may be asked to use more bits for larger numbers.
As an example, we change the denary number 117 into a binary number. First, we set up the column diag
ram up to column heading 128 (which is larger than 117).
1.
2.
128
64
32
16
Then we follow the algorithm. 128 is greater than 117 so put a 0 in the 128s column and move to the 64s
column
128
0
64
32
16
64 is less than 117 so put a 1 in the 64s column, subtract 64 from 117 (117-64= 53) and move to the 32s
column.
128
0
64
1
32
16
32 is less than 53, so put a 1 in the 32s column, subtract 32 from 53 (53-32= 21) and move to the 16s col
umn.
128
0
64
1
32
1
16
If you continue this until you reach 1 or 0 in the denary number, the result is:
Page 5
ruknuddin.com
O/A LevelComputer
Inqilab Patel
128
0
64
1
32
1
16
1
8
0
4
1
2
0
1
1
1
128
0
64
1
32
1
16
0
8
1
4
1
2
0
1
128 + 32 + 16 + 4 + 2 = 182
So 10110110 = 128 (in denary).
1 0 1 1
8 4 2 1
11
B
0 1 0 1
8 4 2 1
5
5
101101012 = B516
3
3
8 4 2 1
0 0 1 1
7
7
8 4 2 1
0 1 1 1
4
4
8 4 2 1
0 1 0 0
3=2+1 so 1s are
below 2 and 1 a
re written below
7=4+2+1 so 1s are written below 4, 2 and 1 and 0s are written below 8.
Page 6
F
15
8 4 2 1
1 1 1 1
written
nd 0s a
8 & 4.
ruknuddin.com
O/A LevelComputer
Inqilab Patel
Q1) When texts are transferred large amounts of data are transmitted.
The characters are sent as ASCII characters. Explain what is meant by an ASCII character.
Q2) State three functions of the arithmetic logic unit. [3]
[2]
[2]
Page 7
ruknuddin.com
O/A LevelComputer
Inqilab Patel
an binary, when debugging his program that reads the key presses.
[2]
Q4) Here are the contents of three memory locations with addresses shown in denary.
0100 0111
151
1100 1101
152
1001 1100
[1]
[1]
Marking Scheme:
Q1) (A member of the) character set that a computer recognises
character on a standard keyboard
standard to many machines
stored in binary as . . .
7, 8 or 9 bits per character [2]
Q2) The arithmetic logic unit carries out arithmetic.
The arithmetic logic unit enables the processor to make logical decisions.
The arithmetic logic unit carries out communication with peripheral devices.
Page 8
ruknuddin.com
O/A LevelComputer
Inqilab Patel
Page 9
ruknuddin.com
O/A LevelComputer
1.1 Data Representation
Inqilab Patel
Bit Pattern:
Specimen 2015 P1 (Q4)
A digital alarm clock is controlled by a microprocessor. It uses the 24-hour clock system (i.e. 6 pm is 18:00). Each di
git in a typical display is represented by a 4-digit binary code.
[2]
Page 10
ruknuddin.com
O/A LevelComputer
1.1 Data Representation
Inqilab Patel
(a) The two registers contain the following values. What is the sequence of coloured lights and the timing for each
colour?
A byte is used to hold the data needed to light the correct segments. Bit 0 is always zero.
For example, 3 is represented by
(a) If the lift is to stop at more than one floor, the data is held in successive bytes. For example:
(a) State what is happening when the above bit pattern is set.
.....................................................................................................................................[1]
(b) Write down the bit pattern that would be set if the water has reached the correct level, the temperature is the
required temperature, the clothes have been washed and the pump is now pumping the water out of the machine.
(c) State one other process that the microprocessor could control.
.....................................................................................................................................[1]
Page 11
ruknuddin.com
O/A LevelComputer
1.1 Data Representation
Inqilab Patel
(b) What bit patterns must be used to show the information 0L?
Page 12
ruknuddin.com