Lesson 2 Everything Binary: Bits Basic Concepts and How Are Bits Used To Represent Information
Lesson 2 Everything Binary: Bits Basic Concepts and How Are Bits Used To Represent Information
Lesson 2
Everything Binary
Bits basic concepts and how are bits used to
represent information
Bits
1
5/25/20
Prefixes
Prefix Name Abbreviation Size
Kilo K 210 = 1,024
Mega M 220 = 1,048,576
Giga G 230 = 1,073,741,824
Tera T 240 = 1,099,511,627,776
Peta P 250 =
1,125,899,906,842,624
2
5/25/20
Base-10 Example
5 0 0 0
8 0 0
7 0
+ 2
5 8 7 2
Base-10 Example
In other words,
5 8 7 2
Binary Notation
Base-2
• Used in machine language (language that computers
understand);
• Use combinations of 2 different numerals to
construct any values;
• The 2different numerals are 0 and 1.
3
5/25/20
Base-2 Example
The binary notation 1011 is interpreted as follows.
1 0 1 1
= 1 x 23 + 0 x 22 + 1 x 21 + 1 x 20
= 1 x8 + 0 x4 + 1 x2 + 1 x1
= 8 + 0 + 2 + 1
= 11 (eleven, in decimal notation)
10
Base-2 to Base-10
11
Base-10 to Base-2
12
4
5/25/20
13
14
15
5
5/25/20
ASCII
16
http://www.theasciicode.com.ar/
Binary to Letter
18
6
5/25/20
21
7
5/25/20
File Sizes
22
23