Académique Documents
Professionnel Documents
Culture Documents
&
Binary to Denary
Chapter 4 Data Representation
Units
• Bit – 1 bit
• Nibble – 4 bits
• Byte – 8 bits
• Kilobyte – 1024 bytes or 1024x8 bits
• Megabyte – 1024 kilobytes
• Gigabyte – 1024 megabytes
• Terabyte – 1024 gigabytes
• Petabyte - a unit of information equal to one
thousand million million (1015) or, strictly,
250 bytes.
What is a denary number?
• These numbers we use in our everyday lives
are called ‘denary’ numbers, it is also referred
to as “Base-10”, which uses the power of 10:
1000, 100, 10, 1.
Binary
128 64 32 16 8 4 2 1
Base of 2
0 1
• When given a number to e.g. 42
convert to binary you need First lowest number under this from the
a sequence of 0’s and 1’s. table above is 32 so this is where I will
• To be able to convert start:
deniary numbers to binary 101010 = this will get 42
you have to firstly pick the 1x32 =32
first lowest number under 0x16=0
the decimal number given. 1x8=8
• Then how many digits 0x4=0
backwards are you going to 1x2=2
use to add together to 0x1=0
make the number. Add all these together will get 42.
Binary
128 64 32 16 8 4 2 1
128 64 32 16 8 4 2 1
1 1 1 0 0 1 0 0
8 4 2 1
Convert the following denary numbers into 4-bit binary, also referred to as Base-2.
13 =
9 =
14 =
G:\ICT\Miss Elliott\Year 10 2016-
11 = 2018\Chapter 3 - Data
7 = Representation\worksheet6 –
Denary to Binary
5 =
8 =
Binary to denary numbers
Now convert back from binary to denary
1100 8 4 2 1
x X X X
1 1 0 0
8+ 4+ 0+ 0 =16
8 4 2 1
x X X X
0011
0 0 1 1
0+ 0+ 2+ 1 =3
What would happen if the denary number was 23?
Can you write this as 4-bit binary?
Binary to denary numbers
Convert the following 4-bit binary numbers into whole denary numbers:
0001 =
1010 =
1111 =
1100 =
0011 = G:\ICT\Miss Elliott\Year 10 2016-
2018\Chapter 3 - Data
Representation\worksheet6 –
Denary to Binary
8-bit binary numbers =byte
128 64 32 16 8 4 2 1
Convert the following denary numbers into 8-bit binary, also referred to as Base-2.
220 =
300 =
132 =
G:\ICT\Miss Elliott\Year 10 2016-
144 = 2018\Chapter 3 - Data
Representation\worksheet6 –
Denary to Binary
Overflow
• What is binary overflow?
• http://www.bbc.co.uk/education/guides/zjfgjx
s/revision/3
EXTENSION 1 on
the sheet
EXTENSION 2
worksheet 10
Starter
• http://ww
w.atividade
seducativas
.com.br/ati
vidades/40
31_binary_
game/binar
y_game.sw
f
http://britton.disted.camosun.bc.ca/binary.swf
TASK: worksheet– Binary to Hex
Studentshare\ICT
\Miss Elliott\Yr
10\Theory2\Chap
ter 3 Data
representation\
Worksheet 9
EXTENSION 1 on
the sheet
EXTENSION 2
worksheet 10
Hex to Denary to Binary
EXTENSION:
• 7A 8C
• FE 3D
EF
• 9F
A9
• 2B F1
A0
Bits and Bytes
G:\ICT\Miss
Elliott\Year 10
2016-
2018\Chapter 3 -
Data
Representation\
worksheet 11
EXTENSION
Binary Addition
0+0=0
1 +0=1
0+1=1
1+1=10
Starter
• http://ww
w.atividade
seducativas
.com.br/ati
vidades/40
31_binary_
game/binar
y_game.sw
f
Binary Addition – worksheet 12
G:\ICT\Miss
Elliott\Year 10
2016-
2018\Chapter 3 -
Data
Representation\w
orksheet 12
Extension:
Convert additions
to denary
Binary Addition
EXTENSION: Can you
convert the following
Denary values to
Hex?
6
10
15
22
36
98
128
160
Starter
0110 1111 1111 1111
+ +
0001 0111 1111 1111
1000 0110 11111 1110 - overflow
1111 1010 1000 1000
+ +
0101 0101 1100 0011
+
1000 1111 +
1010 0001
1110 0011 0111 1001
TASK - extension
TASK - extension
• Workbook page: 79-80
Recap - starter
• What is binary? 0’s and 1’s switches on and off
• What is HEX? Base 16
• What is denary? Base 10 normal whole
number
• What is over flow? Adds up to more than 255
• Extension:
• http://www.bbc.co.uk/education/guides/z26rcdm/test
Or type in binary quiz bitesize this link is the first link
Revision
• Binary - 22
• HEX – 2A
• Denary - 15
Recap Q’s – worksheet 14 - REVISION
G:\ICT\Miss Elliott\Year 10 2016-2018\Chapter 3
- Data Representation
11111110
Shifting binary numbers
DIV MOD
• DIV?
• MOD?
• e.g. 7/2
– DIV = 3
– MOD = 1
Starter
• http://www.teach-
ict.com/gcse_new/data_info_knowledge/data
_types/quiz/ontarget_data_types.htm
ASCII – American Standard Code for
Information Interchange
Activity – Worksheet 13 – ASCII Table
G:\ICT\Miss Elliott\Year 10 2016-2018\Chapter 3 - Data Representation
• Complete the
uni code.
Representing Images
• Pixels can
be used to
represent
images. A
pixel is short
for picture
element
and is a
single point
in an image.
Representing Images
• Images are displayed as a set of pixels which form together to
make an image. Visual Display Units (VDUs / monitors) display
images using pixels. A true high definition monitor will have
1920 pixels in width and 1080 pixels in height. This works out
at a total of approximately 2 million pixels (2,073,600).
Higher quality Image
• The higher the resolution (more pixels), the better quality an
image will be. This is because there are more pixels which
appear smaller and can’t be seen and so the ‘blocky’ pixelated
effect is not noticed by the human eye. More pixels can also
be used to create the image.
https://www.youtube.com/watch?v=2XWzrOzq22E
Bitmaps
• A bitmap is an image formed from pixels.
Bitmap size
• The size in pixels of a bitmap is calculated by multiplying the
width of the image in pixels by the height of the image in
pixels:
• Bitmap size in pixels = Width x Height
• The size in pixels is often referred to as the resolution of the
image.
Bitmaps
• G:\ICT\Miss Elliott\Year 10 2016-
2018\Chapter 3 - Data
Representation\Worksheet 16 – Bitmap Size
Starter – Bitmap Images
• What is a Bitmap Image made up of?
• How many pixels is this image made up of:
• Remember it’s the whole grid
380 KB 21 KB
Lossy Compression
JPG files are automatically compressed, but this
compression is only achieved by removing some of the
original image data permanently. It is surprising just how
much image data you can remove without noticing any
degradation of quality!
TRUTH TABLE