Data Representation Flashcards
STORAGE UNITS:
How to covert from unit to unit:
Bit ⬇️divide by 8 Byte ⬆️multiply by 8 ———————————————— Kilobyte ⬇️divide by 1000 Megabyte ⬆️multiply by 1000 Gigabyte Terabyte Petabyte
What can Boolean be stored with?
Bits
What is half a bite known as?
A nibble
How many bits are in a byte?
1 byte = 8 bits
How many bytes are in 1 kilobyte?
1kilobyte(KB) = 2^10= 1024 bytes
What is a bit?
A single/smallest unit of binary data
Bit = (symbol) b, (binary value) 0 or 1
How many bits are in a nibble?
4 bits = 1 nibble
How many bits are in a byte?
1 byte = 8 bits
How many bytes are in a kilobyte?
1000 bytes = 1 kilobyte
How many kilobytes are in a megabyte?
1000 kilobytes = 1 megabyte
What base system is binary?
Base 2
How many megabytes are in gigabyte?
1000 megabytes = 1 gigabyte
BINARY CONVERSIONS:
What is the conversion table of binary?
128 64 32 16 8 4 2 1
BINARY ARITHMETIC:
What and how do you do binary left shift?
First you write the decimal number in binary. Then you move it left by the shift (for example, it may say left shift by 2). This as a multiple of the original becomes X4. This as a multiple of a power of 2 becomes 2^2.
What and how do you do binary right shift?
First you write the decimal number in binary. Then you move it right by the shift (for example, it may say right shift by 4). This as a division of the original becomes /16. This as a division of a power of 2 becomes /2^4.
HEXADECIMAL:
What base system is hexadecimal?
Base 16
What digits does hexadecimal use?
Numbers 0-9
Letters A-F
CHARACTER REPRESENTATION:
•What does ASCII stand for?
American Standard Code for Information Interchange
•How many bits does ASCII use?
7 bits
•How many characters will this (ASCII) give?
128 characters