Data Representation Flashcards
What is the decimal system?
Base 10, n digits can store 10^n values, [0 - 9]
What is the binary system?
Base 2, n digits can store 2^n values, [0 - 1]
What is the base 1000 system?
n digits can store 1000^n values, 1 digit = 3 numbers, [000 - 999]
What is the sexagesimal system?
Base 60, n digits can store 60^n values, [0 - 59], used as units of time
What is the hexadecimal system?
Base 16, [0 - 15], 0 - 9 then A - F
What is base 256?
each digit can store 256^n values, [00 - FF]
What is a bit and byte?
A bit is a single binary digit, a byte is a collection of 8 digits.
What is a word?
2 bytes or 16 bits
What is a nibble?
A single hex digit
What is the difference between Natural numbers and integers?
Natural numbers range from 0 to infinity, and integers range from negative infinity to infinity
What is one’s compliment?
inverting all the bits to make a negative number
What is two’s compliment?
invert all the bits and add 1 to make a negative number
How can you perform binary subtraction with two’s compliment?
Add the two’s compliment of the smaller number to the bigger and omit the carry bit