Binary Numbers and Integer Representations Flashcards
1
Q
Binary Numbers are?
A
Base 2
Only use the binary digits 0 and 1
Easy to encode on a compute since only 2 states need to be distinguished
2
Q
Unsigned Integers are?
A
Encoded using binary numbers
3
Q
Signed Integers are?
A
Most commonly encoded using the two’s complement representation
4
Q
The process to negate a number is?
A
Take the one’s complement by changing all 0s to 1s and vise-versa.
Add 1 to the result
5
Q
Hexadecimal Numbers are?
A
Base 16
Use the digits 0-9, A-F
Are commonly used as a shorthand for denoting 4-bit patterns
6
Q
Octal Numbers are?
A
Base 8
Use the digits 0-7
May be shorthand for denoting 3-bit patterns
7
Q
What are the different data types?
A
Byte (8 bits) Halfword (16 bits) Word (32 bits) Doubleword (64 bits) Quadword (128 bits)