Computer Science Notes
Computer Science Notes
1 Byte = 8 bits
Denary Hexadecimal Binary
0 0 0000
1 bit 1 1 0001
16 × 1 16 2 2 0010
00110101
16 × 2 32 3 3 0011
byte (8-bits) 16 × 3 48 4 4 0100
16 × 4 64 5 5 0101
16 × 5 80 6 6 0110
16 × 6 96 7 7 0111
16 × 7 112 8 8 1000
16 × 8 128 9 9 1001
16 × 9 144 10 A 1010
16 × 10 160 11 B 1011
12 C 1100
13 D 1101
14 E 1110
15 F 1111
Logical Binary Shift
Left Shift
0 0 0 1 1 0 0 0 24
0 0 1 1 0 0 0 0 48 (1 left shift)
0 1 1 0 0 0 0 0 96 (2 left shift)
2 left shifts = × 22
Error codes
MAC addresses
IPv6
HTML color codes
Error codes – shown as hexadecimal values and these numbers refer to the location of the error.
MAC addresses – uniquely identifies a device on a network and it is made up of 48 bits which are shown as 6 groups.
NN – NN – NN – DD – DD – DD NN:NN:NN:DD:DD:DD
a8fb:7a88:fff0:0fff:3d21:2085:66fb:f0fa
HyperText Mark-up Language (HTML) color codes – often used to represents colors of text on the computer screen. All
The standard ASCII code character set consists of 7-bit codes. (0 to 127)
The extended ASCII code character set consists of 8-bit codes. (0 to 255)
ASCII code has disadvantages does not represent characters in non-Western languages.
Unicode – can represent all languages of the world and it was set up in 1991.
Unicode goals:
Computers cannot work with analogue data so sound waves need to be sampled in order to be stored in a computer.
Sampling measuring the amplitude of the sound wave and this is done using an analogue to digital converter (ADC)
Sound
ADC Binary
0 = Black
1 = White
The number of bits used to represent each color is called color depth.
Pixelated = ‘fuzzy’
M – 106
K – 103
T - 1012
sample rate (in Hz) × sample resolution (in bits) × length of sample (in seconds)