1.2 - Data Representation Flashcards
(52 cards)
What is a ‘Bit’
A single binary digit, a Zero or a One
What is a ‘Nibble’
4 bits
What is a ‘Byte’
8 bits
What is a ‘Kilobyte’
1,000 bytes or 8,000 bits
What is a ‘Megabyte’
1,000,000 bytes
What is a ‘Gigabyte’
1,000,000,000 bytes
What is a ‘Terabyte’
1,000,000,000,000 bytes
What is a ‘Petabyte’
1,000,000,000,000,000 bytes
Why is everything in a computer system stored in binary
easier to process
cheaper to manufacture electronic components with just two states
more reliable
What can you represent when you combine a series of bits
Any kind of data:
- texts
- images
- sounds
- commands
How do you calculate the size of a text file
Bits per character X Number of characters
How do you calculate the size of a sound file
Sample rate X duration (s) X Bit depth
How do you calculate the size of an image file
Colour depth X Image height (Px) X Image width (Px)
What kind of system is binary
Base 2, this means only ones and zeros are used. 1 2 4 8 16 32 64 128
Addition - What are the four rules for adding binary numbers
- 0 + 0 = 0
- 0 + 1 = 1
- 1 + 1 = 0 (carry a 1)
- 1 + 1 + 1 = 1 (carry a 1)
What is it called when you reach the end and still have to carry a 1
an overflow error, it is when the one we have to carry has gone beyond the capacity of the current storage line.
What is the highest number that can be stored in 8-bit binary
255
What numbers can be represented in hexadecimal
0-15
What are hexadecimal numbers used for?
Representing colours, memory addresses, and Mac Addresses
Why are hexadecimal numbers useful
can represent large binary numbers in a smaller number of digits
How do you convert denary to hexadecimal
- convert denary to binary
- group binary timeline into two sets of nibbles
- add each of the nibbles where there are 1’s
What is numbers 10-15 in hexadecimal
10-A 11-B 12-C 13-D 14-E 15-F
What is a binary shift
When you move the binary values to the left or right
What is the effect of a one bit left binary shift
Multiplication of 2