Lesson 3 PPT CSS
Lesson 3 PPT CSS
Lesson 3 PPT CSS
• What is bit?
• ASCII Codes.
• Conversion of Decimal to binary
• Conversion of Binary to Decimal
• Conversion of Byte and Bit
Digital Representation
• In a computer, information is represented
and stored in a digital binary format.
• The term bit(s) is an abbreviation of binary
digit(s), which represent the smallest piece
of data in a computer system.
BIT
• A bit can have only two possible values,
which is a one digit (1) or a zero digit (0).
• A bit can be used to represent something
that has two states.
– Example:
• DecisionTrue or False
• Switch On and Off
• Boolean 1 and 0
ASCII
• Computer uses binary code to represent
and interpret letters, numbers and special
character with bits.
• A commonly used code is the ASCII
(American Standard Code for Information
Interchange).
ASCII
• With ASCII, each character is represented
by a string of bits.
– Example:
• Capital Letter A = 0100 0001
• Number: 9 = 0000 1001
• Special Character: # = 0010 0011
ADDITIONAL NOTE:
• Each group of eight bits (8 bits), such as
the representation of letters and numbers,
is known as byte.
8 bits = 1 byte
• Codes can be used to represent almost
any type of information digitally: Computer
data, graphics, photos, voice, video and
music.
ADDITIONAL NOTE:
• Each group of eight bits (8 bits), such as
the representation of letters and numbers,
is known as byte.
8 bits = 1 byte
• Codes can be used to represent almost
any type of information digitally: Computer
data, graphics, photos, voice, video and
music.
CONVERSION OF DECIMAL TO BINARY
Convert 25 to binary
QUOTIENT REMAINDER
25 / 2 12 1
12/2 6 0
6/2 3 0
3/2 1 1
1/2 1 1
25 = 11001
HOW TO CHECK
Checking if 25 = 11001
1 1 0 0 1 multiplier
16 8 4 2 1 equivalents
16 + 8 + 0 +0 + 1
results
16 + 8 + 1 = 25
Bytes Conversion Table
Data storage and when describing memory size, a Kilobyte is
2^10, or 1024 bytes.