Chapter 2: Coding numbers into binary Flashcards

1
Q

What are unsigned integers?

A

unsigned because we do not let these have a sign (either negative or positive). With 4 bits, there are 16 different unique combinations. Therefore 4 bits can represent unsigned integers from 0 to 15.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is ones compliment?

A

This is when all the bits in a binary number are inverted

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How to determine the binary code of a negative integer?

A

In order to determine the binary code of a negative integer in the two’s complement system you first need to take the one’s complement by inverting all the bits, and then add 1 to the result.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Example of using two’s compliment to convert 8510 to -8510 ?

A

Example: with 8 bits the decimal number 8510 = 0101 01012

The one’s complement is therefore 101010102, and the two’s complement, and thus -8510 = 1010 10112.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How are binary numbers coded with the BCD system?

A

Example: The code 1001 0001 can be used to represent 91. 8 bits can span the range between 0-99.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly