4.5.4 FoDR - Binary Number System Flashcards

1
Q

What is the difference between unsigned and signed binary

A
  • Unsigned binary can only be used to represent Natural numbers, Whereas signed binary is used to represent Integer numbers
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the minimum value that can be represented in unsigned binary with n bits

A

0

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

What is the maximum value that can be represented in unsigned binary with n bits

A

2ⁿ-1

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

What is meant by an overflow

A

Where the result of an operation has more bits than there are available

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

What is meant by an underflow

A

Where the result of an operation has less bits than there are available

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

What is the range for the number of numbers that you can represent using the Two’s complement

A

-2ⁿ –> 2ⁿ⁻¹-1

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

How many numbers can be represented using twos complement

A

2ⁿ

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

What are the advantages of Fixed Point

A
  • Simpler to calculate therefore the process is generally faster
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are the advantages of Floating Point

A
  • Has a larger range for the same number of bits
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are the characteristics of Floating Point Binary

A
  • Uses Mantissa and Exponent
  • Precision depends on the number of bits used to represent the mantissa
  • Range depends on the number of bits used to represent th eexponent
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are the characteristics of Fixed Point Binary

A
  • The range depends on how close the binary point is to the LSB
  • The precision depends on how close the binary point is to the MSB
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Why can both representation of fractional binary be inaccurate

A

Some numbers can just not be represented exactly in binary, this means it can only be an approximation e.g. 0.1, which can cause rounding errors

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

How do you round a binary number

A
  • Look at the first bit that you cannot store
  • If its a 1, add 1 to the whole number, then truncate the number
  • If 0, truncate the number
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What are the conditions for binary number to be normalised

A
  • If positive: 0.1
  • If negative: 1.0
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is the condition for a real number to be represented in a binary number system

A

Its fractional part must be able to be represented exactly in binary

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

What is meant by the absolute error

A

The difference between the approximation and the true value

17
Q

What is the equation for the absolute error

A

A = difference between true value and approximation

18
Q

What is meant by the relative error

A

A measure of the uncertainty in a given value compared to the true value

19
Q

What is the equation for relative error

A

Relative Error = Absolute Error/ Actual Value