Computer-science_A-level_Cie
-
computers-and-components6 主题
-
logic-gates-and-logic-circuits2 主题
-
central-processing-unit-cpu-architecture6 主题
-
assembly-language-4 主题
-
bit-manipulation1 主题
-
operating-systems3 主题
-
language-translators2 主题
-
data-security3 主题
-
data-integrity1 主题
-
ethics-and-ownership3 主题
-
database-concepts3 主题
-
database-management-systems-dbms-1 主题
-
data-definition-language-ddl-and-data-manipulation-language-dml1 主题
-
computational-thinking-skills1 主题
-
algorithms14 主题
-
data-types-and-records2 主题
-
arrays2 主题
-
files1 主题
-
introduction-to-abstract-data-types-adt1 主题
-
programming-basics1 主题
-
constructs2 主题
-
structured-programming1 主题
-
program-development-life-cycle2 主题
-
program-design-2 主题
-
program-testing-and-maintenance3 主题
-
user-defined-data-types1 主题
-
file-organisation-and-access-3 主题
-
floating-point-numbers-representation-and-manipulation3 主题
-
protocols2 主题
-
circuit-switching-packet-switching1 主题
-
processors-parallel-processing-and-virtual-machines5 主题
-
boolean-algebra-and-logic-circuits4 主题
-
purposes-of-an-operating-system-os3 主题
-
translation-software3 主题
-
encryption-encryption-protocols-and-digital-certificates3 主题
-
artificial-intelligence-ai4 主题
-
recursion1 主题
-
programming-paradigms4 主题
-
object-oriented-programming7 主题
-
file-processing-and-exception-handling2 主题
-
data-representation5 主题
-
multimedia3 主题
-
compression2 主题
-
networks-and-the-internet11 主题
number-systems
Number bases
What is a number base?
-
A number base is the number of different digits or symbols a number system uses to represent values
-
Each place in a number represents a power of the base, starting from the right
Denary
-
Denary is a number system that is made up of 10 digits (0-9)
-
Denary is referred to as a base-10 number system
-
Each digit has a weight factor of 10 raised to a power, the rightmost digit is 1s (100), the next digit to the left 10s (101) and so on
-
Humans use the denary system for counting, measuring and performing maths calculations
-
Using combinations of the 10 digits we can represent any number

-
In this example, (3 x 1000) + (2 x 100) + (6 x 10) + (8 x 1) = 3268
-
To represent a bigger number we add more digits
Binary
-
Binary is a number system that is made up of two digits (1 and 0)
-
Binary is referred to as a base-2 number system
-
Each digit has a weight factor of 2 raised to a power, the rightmost digit is 1s (20), the next digit to the left 2s (21) and so on
-
Each time a new digit is added, the column value is multiplied by 2
-
Using combinations of the 2 digits we can represent any number

-
In this example, Binary 1100 = (1 x 8) + (1 x 4) = 12
-
To represent bigger numbers we add more binary digits (bits)
|
32,768 |
16,384 |
8,192 |
4,096 |
2,048 |
1,024 |
512 |
256 |
128 |
64 |
32 |
16 |
8 |
4 |
2 |
1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
215 |
214 |
213 |
212 |
211 |
210 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
Hexadecimal
-
Hexadecimal is a number system that is made up of 16 digits, 10 numbers (0-9) and 6 letters (A-F)
|
0 |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
0 |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
A |
B |
C |
D |
E |
F |
-
Hexadecimal is referred to as a base-16 number system
-
Each digit has a weight factor of 16 raised to a power, the rightmost digit is 1s (160), the next digit to the left 16s (161)
|
16s |
1s |
|
|---|---|---|
|
1 |
3 |
|
|
1 x16 |
3 x 1 |
= 19 |
-
A quick comparison table demonstrates a relationship between hexadecimal and a binary nibble
-
One hexadecimal digit can represent four bits of binary data
|
Denary |
Binary |
Hexadecimal |
|---|---|---|
|
0 |
0000 |
0 |
|
1 |
0001 |
1 |
|
2 |
0010 |
2 |
|
3 |
0011 |
3 |
|
4 |
0100 |
4 |
|
5 |
0101 |
5 |
|
6 |
0110 |
6 |
|
7 |
0111 |
7 |
|
8 |
1000 |
8 |
|
9 |
1001 |
9 |
|
10 |
1010 |
A |
|
11 |
1011 |
B |
|
12 |
1100 |
C |
|
13 |
1101 |
D |
|
14 |
1110 |
E |
Responses