A2 Solutions - Bits and Bytes
A2 Solutions - Bits and Bytes
A2 Solutions - Bits and Bytes
How many binary digits (bits) Number of bits in the file: 96 bits
does this file contain?
There are 8 bits in a byte.
Problem 2 Symbols
The table below contains examples of a few symbols, and their binary encodings in the
UTF-8 coding scheme.
Fill in the last column of the table: how many bytes are required for each of the
characters?
@ 01000000 8 8 / 8 = 1 byte
11000010
£ 10100011
16 16 / 8 = 2 bytes
11100010
⁂ 10000001 24 24 / 8 = 3 bytes
10000010
11110000
10011101
𝄞 32 32 / 8 = 4 bytes
10000100
10011110
! |\_/| !
! -(@ @)- !
!--oOO--(_)-OOo---!
In this image, there are 3 lines, with Total number of characters in the image:
20 characters in each line. 60 characters
This includes spaces and the special
characters that move to the next line. There are 3 x 20 = 60 characters in the
image.
How many characters are in the
image in total?
How many bits are required for Bits for the entire image: 480 bits
representing the entire image?
There are 60 characters in the image.
Each character requires 8 bits,
so the image requires 60 x 8 = 480 bits.
How many bytes are required for Bytes for the entire image: 60 bytes
representing the entire image?
There are 60 characters in the image.
Each character requires 1 byte,
so the image requires 60 bytes.
This resource is available online at ncce.io/rep1-5-a2-s. Resources are updated regularly — please check that
you are using the latest version.
This resource is licensed under the Open Government Licence, version 3. For more information on this
licence, see ncce.io/ogl.