Storing Digital Data
Storing Digital Data
THE NATURE OF
TECHNOLOGY
Slides by
Ms Abeera Sikandar
lecturer
bahria college anchorage
computer sciences
What is digital data?
What does a computer use digital data for?
The 1’s and 0’s inside the computer cam be used to store:
The number system that a computer uses has two different digits: 1 and 0.
This is called the binary number system
The ‘bi’ in the word means ‘binary’ means two.
Storing text using Binary Numbers
When a computer uses binary to store data, it uses codes.
To a computer, the WORD “Hello” looks like this:
01001000 01100101 01101100 01101100 01101111
11
ACTIVITY
The binary number system uses two digits (0 and 1 ). The value of each column in a
binary number is 2 times greater than previous column.
How to read binary?
The easiest way to read binary is to convert it into decimal number.
Bytes
Byte is a group of 8 bits.
11110010 is 1 byte .(8 bits)
Language of Numbers
Ten and eleven are examples of names of numbers in decimal system.
8s 4s 2s Units
Number 1
Number 2
Carry
Sum
Adding bytes
Adding bytes
Number 2
Carry
Sum
Binary place values
Converting decimal number into binary
Let’s Start!
First value is 20
Converting decimal number into binary
Converting decimal number into binary
Largest Number that can be converted into binary with 8 bits:
Overflow
If you try to store a number bigger than 255 with 8 bits, it will
cause an overflow error.
Worked Example:
What is a value?
The numbers that we use in daily life and used in calculations e.g
addition, multiplication, is called value.
Other type of contents:
Numbers are stored in Binary in computer, We know this
But what about other types of contents
Text
Sound
Image
ASCII can old 8 bits(1 byte) to store one UNICODE can hold more than 1 bytes for
character. one character.
What is a Pixel??
Pixel is a small picture element. Pixels are organized in rows and columns.
Digital Images
Each pixel stores a single colour. Our brain blends different colors together into a
realistic image.
That image is called a bitmap image.
Storing 2 colours:
More than 1 colour:
The computer uses twpo bits to store
the colour information about a single
pixel.
Black 00
Red 01
Blue 10
white 11
True colors:
True colours is a method where 3 bytes are used to store information
about a single pixel.
Resolution:
The number of pixels in an image
is called resolution
Colour depth:
Using more colours is called colour depth in an image.
Digital Sound:
Computer cannot save continuous data.
It converts it into chunks by process called
Sampling.