Representing data Flashcards
How do you convert binary to base 10?
You lay out the byte under the values 128, 64, 32, 16, 8, 4, 2 & 1, and add up the values that are above a 1.
What are the first 5 data values?
byte, kilobyte, megabyte, gigabyte and terabyte.
How many of each value is in the next?
1024 (eg, 1024 megabytes in a kilobyte), except byte, which contains 8 bits.
What is the name of half a byte?
A ‘nibble’ - contains 4 bits.
How do you convert base 10 into binary?
You take away the values 128 to 1 until you have zero.
How do you add binary numbers?
Line them up one above the other. Where there is two zeros, write zero. Where there is a one, write one. Where there is two ones, write zero, carry one.
Say the table of nibbles (probably only a good idea to do this once)
0000, 0001, 0010, 0011, 0100, 0101, 0110, 0111, 1000, 1001, 1010, 1011, 1100, 1101, 1110, 1111.
How do you convert a byte to hexadecimal?
Split the byte in two and select the correct symbols from the table.
What is the character set of a computer?
All of the characters that the computer can interpret.
What is the difference between ASCII and Unicode?
ASCII only uses 7 or 8 bits, where as Unicode uses 16, meaning that Unicode provides a much larger character set.
What is meta data?
The data stored at the begging of an image or sound file that tells the computer how create the sound or image (sample rate, resolution, height/with, colour depth etc)
What is the color depth?
The amount of bits assigned to each pixel. The more bits per pixel, the more possible colors. (1 bit = two colors, 8 bit = 256 colors etc.)
How do you work out the amount of colors a bit depth can represent?
2^n (eg 16 bit = 2^16 = 65,536 colors.)
What is the problem when storing sound files?
Sounds are analog waves, computers produce digital waves.
What is the sample rate?
The interval between each sample taken to construct the sound wave.