Data Representation Flashcards
Why do computers use binary to represent all forms of data?
- Any form of data needs to be converted to binary to be processed by a computer
- Data is stored using 1’s and 0’s
Describe how bits are represented on a HDD:
- a platter contains billions of tiny magnetic grains.
- each grain independently magnetized (to store a 1) or demagnetized (to store a 0)
Describe how bits are represented on an optical disk e.g. CD/DVD/BluRay
Pits and lands used to represent 1 or 0 on the surface of a CD
A laser shines onto the surface of the disc and the reflection is measured
What is denary?
Denary is the standard number system used around the world
Denary is known as base 10 because there are ten choices of digits between 0 and 9
Each digit has a place value (powers of 10)
What is binary?
Binary is a number system used in computing
Binary is known as base 2 because there are 2 choices of digits , 0 and 1
Each digit has a place value (powers of 2)
Explain the difference between the binary and denary number systems
- Binary base 2 system
- Denary base 10 system
- Binary has 2 digits (0 and 1)
- Denary has 10 digits (0-9)
- Binary place values are powers of 2
- Denary place values are powers of 10
What are the binary place values for a byte?
128 64 32 16 8 4 2 1
Convert the 8 bit binary number 10011011 into denary
155
Convert the following binary numbers into denary
00011101
00100101
01010101
10010100
00011101 = 29
00100101 = 37
01010101 = 85
10010100 = 148
Convert the denary value 156 into binary
10011100
Convert the following denary numbers into 8 bit binary
96
72
161
74
96 = 01100000
72 = 01001000
161 = 10100001
74 = 01001010
What is the largest value that can be stored in 8 bits?
255 (128 + 64 + 32 + 16 + 8 + 4 + 2 + 1)
What is the largest value that can be stored in 10 bits?
1023 (512 + 256 + 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1)
How many bits in a byte?
8
How many bits in a nibble?
4
How many nibbles in 4 bytes?
8
What is hexadecimal?
- Base 16 number system
- 16 choices of digits (0-9, A-F)
- Place values are powers of 16
What are the place values for the hexadecimal value A7F3?
- 4096 256 16 1
- A 7 F 3
What is the denary value of the hex digit A?
10
What is the denary value of the hex digit E?
14
What is the denary value of the hex digit 7?
7
Convert the hex value AAA to Denary
2730
Convert the following hex values to denary
- 1F
- 42
- CC
- 1F = 31
- 42 = 66
- CC = 204
Convert the hex value CA to Binary
11001010