Chapter 4: Data Representation Flashcards
Bit
A single binary digit: 1 or 0
Nibble
4 bits
Byte
8 bits
Kilobyte
1024 bytes (2¹⁰ bytes)
Megabyte
1024 kilobytes (2²⁰ bytes)
Gigabyte
1024 megabytes (2³⁰ bytes)
Terabyte
1024 gigabytes (2⁴⁰ bytes)
What is the order of the various kinds of bytes? (Up to terabytes needed)
- Byte
- Kilobyte
- Megabyte
- Gigabyte
- Terabyte
- Petabyte
- Exabyte
Binary
The base 2 number system, which consists of the digits 1 and 0. Used by computers
Why is binary used in computers?
Computers consist of millions of transistors, which are switches that are either on (to store a 1) or off (to store a 0)
Denary
Base 10, which uses the digits 0 through 9. The system we use in everyday life
Hexadecimal
The base 16 number system, which uses the digits 0-9 and the letters A-F. Used to represent groups of four bits at a time
Why is hexadecimal number representation often used?
Hexadecimal is generally easier for people to remember than binary
How would you write the denary number 84 in binary?
1010100
How would you write the denary number 182 in hexadecimal?
B6
How would you write the hexadecimal number FF in denary?
255
How would you write the binary number 11111111 in denary?
255
How would you write the binary number 01011100 in hexadecimal?
5C
How would you write the hexadecimal number 4E in binary?
01001110
How would you store a real number in binary?
Store the main part of the number (the mantissa) and the number of times it needs to be multiplied by 10 (the exponent)
How would you store a date in binary?
Each date would be stored as a unique number within a certain range of dates and time
Character set
The set of symbols that can be represented by a computer, which includes letters, digits, punctuation and control characters
How is each character in a character set represented?
Each character is represented by a numerical code stored as a binary integer
What are some examples of character sets? (3)
- ASCII
- Unicode
- EBCDIC
ASCII
American Standard Code for Information Interchange: a 7-bit character set used by PCs. There is also an extended set that uses 8 bits
What is the ASCII code for the space key?
32