Number systems Flashcards

1
Q

Describe a method that can, without the use of binary addition, multiply any unsigned binary integer by 2.

A

Logical left shift by 1

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

Describe a method that can, without the use of binary addition, divide any unsigned binary integer by 2.

A

Logical right shift by 1

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

Describe what two’s compliment is

A

The most significant bit is the sign bit (1 for negative, 0 for positive)

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

What are the different types of rounding errors and what do they mean

A
  • Absolute error: Difference between the value required and the closest representable value
  • Relative error: Absolute error as a percentage of the value required
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What causes an underflow error

A

The value to be represented is too small for the given number of bits

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

What causes an overflow error

A

The value to be represented is too large for the given number of bits

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