Topic 1. Data Representation Flashcards
Flashcards on Binary, Text, Sound and Images
What are the advantages of hexadecimal?
Easier for humans to read and remember than binary
What is hexadecimal used for?
Colour values in photo editing software and Web design
MAC Addresses
What are the rules in binary addition
0 + 0 = 0
1 + 0 or 0 + 1 = 1
1 + 1 = 0 carry a 1
1 + 1 + 1 = 1 carry a 1
When does an overflow occur?
When the result of adding two binary numbers is greater than the numbers of bits allowed
For example if you added 193+139 on a 8 bit register it would be an overflow
What is the effect of a left logical binary shift?
It will multiply a binary number by 2
What is the effect of a right logical binary shift?
It would divide the binary number by 2
How would you convert -21 to binary?
Work out the positive binary equivalent of -21, 0001 0101
Flip all the bits 1110 1010
Add one 1
Convert: 1110 1011
How would you convert the negative two’s complement binary number 1110 1110 to denary?
Flip the bits 0001 0001
Add one 1
Convert: -0001 0010 =-18
What is a character set?
A set which consists of all the letters, numbers, and characters that can be recognised by a computer system
How many bits and characters are in the ASCII Character Set?
7 bits, 128 characters
How many bits and characters are in the Extended ASCII Character Set?
8 bits, 256 characters
How many bits and characters are in the Unicode Character Set?
16 bits, 65,356 characters
(enough to represent most of the characters in international languages like Russian, Chinese & Arabic + emojis)
What is the sample resolution?
The number of bits per sample
What is the sample rate?
The number of samples taken in a second
How do you calculate sound file size
Length of sample in seconds × Sample Rate × Sample Resolution