Las Tle7&8 - CSS WK3
Las Tle7&8 - CSS WK3
KEY CONCEPT:
Digital Representation
Within a computer, information like computer data, image, videos, music is represented and stored
in a digital binary format. The term bit is an abbreviation of binary digit and represents the smallest piece of
data. Computers interpret only patterns of bits.
A bit can have only two possible values, a one digit (1) or a zero digit (0). A bit can be used to
represent the state of something that has two states. For example, a light switch can be either On or Off.
Computers use binary codes to represent and interpret letters, numbers and special characters with
bits. A commonly used code is the American Standard Code for Information Interchange (ASCII). With
ASCII, each character is represented by a string of bits.
ASCII Code
Binary Character
01000010 A
01000011 B
01000100 C
01000101 D
Based from the ASCII Code table, the text ABA is 01000010 01000011 01000010 in computer
representation.
Binary Prefix
Unit Abbreviation Equivalent to What sort of things are in this size range?
Bit b 0 or 1 Single binary value
Byte B 8 bits Single ASCII Character or a number between 0 and 255
Kilobyte KB 1,024 bytes A text file
Megabyte MB 1,024 kilobytes Digital photographs and MP3 files
Gigabyte GB 1,024 megabytes Videos and Software Applications
Terabytes TB 1,024 gigabytes Backups of whole systems
Other data storage units are Petabyte (PB), Exabyte (EB) and Yottabyte (YB). There are no
approved standard sizes for anything bigger than a yottabyte. However, the two proposed standards are
hellabyte or brontobyte.
Example #1:
If the size of a digital photograph is 8MB, how many photographs can be stored on a 32GB SD
card?
Given: 8MB – size of data
32GB – available space. Need to convert 32GB to MB or 8MB to GB to have the same units.
(2) Divide the available space by the space required for one image to find how many can be
stored in total:
32,768 MB / 8 MB = 4,096 images can be stored
Example #2:
How many text documents with a size of 3 KB can you save in 4 MB flash drive?
Given: 3 KB – size of data
4 MB – available space. Need to convert to 4 MB to KB
Solution:
(1) Convert 4 MB to KB
4 * 1024 = 4,096 KB
1. How many videos with a size of 500 MB can you save in a 4GB flash?
2. A 30 pages word document is about 7.6mb, how many can be saved in 1GB flash drive?
3. If one character is 8 bits, how many characters can be typed in a memory card with 350 bytes
free space.
Key Concept:
Decimal System
The decimal numeral system is the most commonly used and the standard system in daily life. It
uses the number 10 as its base (radix). Therefore, it has 10 symbols: The numbers from 0 to 9; namely 0,
1, 2, 3, 4, 5, 6, 7, 8 and 9.
Number 1735 could be written as 173510 with a base of 10. Since base-ten math seems “natural”
and we been doing base-ten since childhood, its understandable not to write the base.
The Hindu-Arabic numeral system gives positions to the digits in a number and this method works
by using powers of the base 10. The digits are raised to the nth power, in accordance with their position.
Example:
Number 1735
1 7 3 5
1. Multiply each digit with 10
because it is the base of decimal 1 x 10 7 x 10 3 x 10 5 x 10
2. Write an exponent on each base
starting at 0 to nth power. The
ones position has the power of 0, 1 x 104 7 x 102 3 x 101 5 x 100
tens position has power of 1 and
so on
3. Place a + sign to add all the digits. (1 x 103) + (7 x 102) + (3 * 101) + (5*100)
Binary System
The binary system has become the language of electronics and computers in the modern world.
This is the most efficient system to detect an electric signal’s off (0) and on (1) state. It is also the basis for
binary code that is used to compose data in computer-based machines.
The binary numeral system uses the number 2 as its base (radix). As a base-2 numeral system, it
consists of only two numbers: 0 and 1.
Example: 00001011
This binary number could also be written as 000010112 with a base of 2.
Converting decimal number 1210 to corresponding binary number. (Note: Start reading at STEP 1)
0 Remainder 1 MSB
2 1 Remainder 0
2 2 Remainder 0
2 4 Remainder 1
2 9 Remainder 1
2 19 Remainder 1 LSB
2 39
3910
Note: If you have mastered the steps, you can immediately write the conversion process to its
proper form.
For example: Convert binary number 1001112 to decimal.
= 1 x 25 + 0 x 24 + 0 x 23 + 1 x 22 + 1 x 21 + 1 x 20
= 1 x 32 + 0 x 16 + 0 x 8 + 1 x 4 + 1x2 + 1x1
= 32 + 0 + 0 + 4 + 2 + 1
= 39
1. 810
2. 2910
3. 1010
4. 12710
5. 3210
3. 11112
4. 111002
5. 10000012
ANSWER KEY:
1. 8 videos
2. 134 word document
3. 350 characters
4. 109 images
5. 166 mp3s
1. 10002
2. 111012
3. 10102
4. 11111112
5. 1000002
1. 810
2. 45
3. 15
4. 28
5. 65