Binary Number Systems Flashcards

1
Q

What is the range of unsigned numbers

A

0 to 2^n - 1

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

How do you represent negative numbers

A

Two’s Complement

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

What is the negative place value for 2s Complement

A

The most significant bit

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

What is the range of a two’s complement signed binary number

A

2^n-1 - 1 to -2^n-1

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

How do you represent a fractional part in a number

A

Fixed Point or Floating Point

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

Problems with decimal numbers in binary

A

Some numbers can not be represented exactly - even with fixed or floating points

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

What is an absolute error

A

It is the difference between the intended number and the approximation

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

What is the relative error

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
9
Q

Formula for Relative Error

A

absolute error / actual value

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

Advantages of floating point compared to fixed point

A

Representation of a greater range of values with a given number of bits

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

Why are floating points normalised and how

A

Provide the maximum level of precision for a given number of bits

Numbers start with 01 for a positive number or 10 for negative numbers

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

Limitation of Unsigned Binary

A

Can’t represent negative numbers

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

What is signed binary

A

Number system to represent negative numbers

Assign the highest order bit to represent whether the number is positive or not - 1 is negative and 0 is positive

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

Unsigned Binary Arithmetic

A

Convert values to unsigned binary
Do binary addition
Convert the answer to denary

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

Rules for Binary Multiplication

A

0 x 0 = 0
0 x 1 = 0
1 x 0 = 0
1 x 1 = 10

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

How do you do two’s complement

A

Invert the numbers
Add one to the original number
Convert the answer to denary

17
Q

How to represent fixed point

A

Allocate one set of bits for the integer and another set of bits for the fractional part

18
Q

How to represent floating point

A

Put the number into standard form and then use one set of bits for the number and another for the power

19
Q

How to represent negative floating point

A

Use 2’s complement

Add 1 to the least significant bit