Unit 2: Data Representation Flashcards
What Units is data measured in?
Bit (b) - Single Binary Digit (1 or 0)
Nibble - 4 Bits
Byte (B) - 8 Bits
Kilobyte (kB) - 1000 Bytes
Megabyte (MB) - 1000 Kilobytes
Gigabyte (GB) - 1000 Megabytes
Terabyte (TB) - 1000 Gigabytes
Petabyte (PB) - 1000 Terabytes
Why do we use binary format to represent information on a computer?
Common Exam Question
In the exam, you may get asked to explain why we use a binary format to represent information on a computer. The answer is that computers use on and off signals, binary has two states 0 and 1, the binary 0 and 1 state can therefore represent the on and off electrical signals.
In our standard number system, we have ten digits (0-9), what is this called?
Denary, Decimal or Base-10
Binary, Denary and Hexadecimal Conversions
GoodNotes
All Binary, Denary and Hexadecimal conversions on GoodNotes
GoodNotes
What are Character Sets?
Collections of characters that a computer recognises from their binary representations.
Why are Character Sets used?
- Alphanumerical characters are used to make words and strings. They include uppercase, lowercase, digits (0-9) and symbols (? £ @ +)
- Computers are unable to process these characters directly as they only process binary code so need a way of converting these characters to binary code and vice versa.
- They can do this using character sets.
Character sets also contain special characters which do certain commands (e.g enter and delete)
How are character sets used when you press a button on a keyboard?
Pressing a button on a keyboard sends a binary signal to the computer telling it which key you pressed. The computer then uses the character set to translatethe binary code into a particular character.
What does the number of characters in a character set determine?
How many bits you need
What is ASCII?
- The most commonly-used character set in the english-speaking world.
- Each ASII character is given a 7-bit binary code meaning it can represent 128 different characters, including letters, numbers, symbols and commands.
- An extra bit (0) is added to the start of the binary code for each ASCII character.
- The codes for numbers, uppercase letters and lowercase letters are ordered letters in alphabetical order with symbols and commands scattered around.
What is Unicode?
- Comes in several different forms and tries to cover every possible character or symbol that might be written. Unlike ASCII, unicode uses multiple bytes for each character.
- It covers major langauges, even those with a completely different alphabet.
- First 128 codes is the same as ASCII.
What is the formula for the size of a text file?
File size (bits) = number of bits per character x number of characters
What is Metadata?
- Metadata is the