Representation of Data in a Computer system Flashcards
What is a bit, nibble, byte, kilobyte, megabyte, gigabyte and terabyte?
a bit is a single digit in binary (0, 1), 4 bits, 8 bits, 1024 bytes, 1024 kilobytes, 1024 megabytes, 1024 gigabytes
You can say 1000 instead of 1024
Why does data need to be converted to binary to be processed by a computer?
So the computer can understand what is being inputted in its own language as binary represent two states in a circuit (on/off)
How do you convert denary into binary?
8 bit binary goes 128, 64, 32, 16, 8, 4, 2, 1 add them up to get denary
How do you add binary?
1 + 1 = 10 write zero carry 1 1 + 1 + 1 write 1 carry 1 0 + 1 = 1 0 + 0 = 0 Or convert to denary
What is an overflow error?
When a computer has only a certain number of bits to store a value and the result of addition needs and extra bit
How do you convert denary into hexadecimal?
you divide by 16 and get the remainder for the second digit
then you divide again by 16 and get the remainder for the first digit
197 = C5
How do you convery binary into hexadecimal?
split 8-bit binary into two four bits and represent the four bits in hexadecimal
Why is hexadecimal used to represent binary numbers?
It is much easier to write, remember and communicate with
How are binary codes used to represent characters?
relates a binary number with a character in a character set
What is a character set?
The list of codes and matching characters
What is the relation between the number of bits per character in a character set and the number of characters which can be represented?
The more bits per character the more numbers in a character set
What is the ASCII character set?
It uses 7 bits so can provide 128 characters
Only uses the English alphabet
What is the Unicode character set?
It uses 16 bits so can provide over 60,000 possibilities or 32 bit
It is universally applicable with many characters
How are images represented?
as a series of pixels represented by binary
What is the need for metadata to be included in a file?
metadeta shows the height, width, colour depth