5.4 Binary Number Systems Flashcards

1
Q

How do you work out the range of unsigned numbers for n bits?

A

there are 2^n possible permutations. Giving a range of 0 to 2^n - 1.

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

What’s the difference between signed and unsigned binary?

A

Unsigned binary values can only be used to represent positive numbers whilst signed binary can be used to represent both positive and negative numbers.

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

How do you add 2 unsigned binary numbers?

A

Place the 2 binary numbers above each other so they line up. Then add the values in each column and put the value below. If the the value is more than 1 carry the digit to the next column. Then the finally result is on the bottom row.

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

How do you multiply 2 unsigned binary numbers?

A

Write out one of the two numbers starting under each occurrence of a 1 in the second number and then add the contents of the columns.

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

What coding scheme does AQA use for signed binary?

A

Two’s complement

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

How do you subtract using two’s complement?

A

You have to add the 2 numbers. Using the adding binary technique.

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

How do you work the range of signed binary numbers for n bits?

A

The range is 2^n-1 to - 2^n-1

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

What are the 2 ways a fraction can be represented in binary

A

Floating point and fixed point

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

how does a fixed point fractional part work?

A

A specified number of bits are placed before a binary point and the remaining bits fall behind that point. The columns behind the point start at 1/2.

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

True or false, will the mantissa and an exponent be in twos complement in floating point binary?

A

True

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

How do you convert floating point into decimal?

A

First convert the exponent to decimal. Next, as if there was a binary point between the first and second digits of the mantissa move point the number that the exponent gives to the right. Then treat it like a normal fixed point number.

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

How do you convert decimal to floating point?

A

First convert the number to fixed point binary. Move the binary point between the first occurrence of 0 and 1 (for positive) and 1 and 0 (for negative). The amount the decimal point has moved becomes the exponent. Calculate the final answer.

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

Why do rounding errors occur in binary?

A

Rounding errors occur because there are some decimal values that cannot be exactly represented exactly in binary

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

What is a relative error?

A

A relative error is a measure of uncertainty in a given value compared to the actual value which is relative to the size of the given value.

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

How do you calculate aa relative error

A

absolute error
Relative error = ———————– * 100
Actual value

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

Challenge the advantages and disadvantages of Fixed points against floating points.

A

Floating point allows for the representation of a greater range of numbers.
because the floating point exponent can be either positive or negative.
A large exponent and small mantissa allows for a large rand but little precision and vice-versa.

17
Q

When does Underflow occur?

A

Underflow occurs when very small numbers are to be represented but there are not enough bits available.

18
Q

When does overflow occur?

A

Overflow occurs when a number is too large to be represented with the available bits.