Binary numbers and Integer Representation Flashcards
1
Q
An n-bit register can hold how many bit patterns?
A
2^n
2
Q
Range of unsigned integers
A
0 - 2^(n-1)
3
Q
Range of signed integers
A
-2^(n-1) to 2^(n-1)-1
4
Q
Steps to negate a number
A
- take the one’s complement
- Add 1 to the result
(Also works to negate a negative number)
5
Q
What is the one’s complement?
A
Toggle all 0’s to 1, and vice versa
6
Q
Octal numbers
A
Base 8
numbers 0-7
Each digit corresponds to a 3-bit pattern