Data Representation Flashcards

1
Q

Sign and Magnitude

A

MSB (most significant bit – on far left of binary number) represents the sign of the number 1 = -ve 0 = +ve.

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

Two’s Complement

A

MSB represents a negative value e.g. 1000 = -8 + 0 + 0 + 0 = -8 and 1001 = -8 + 0 + 0 + 1

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

Real Binary Number

A

Binary number that involves a fractional part.

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

Floating Point Rep

A

Used to represent real numbers. Involves two numbers, the mantissa and exponent.

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

Mantissa

A

The part of a floating-point number which represents the significant digits of that number (and the sign of the number).

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

Exponent

A

It defines where the point needs to be (+ve exponent point moves right and –ve exponent point moves left).

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

Normalisation why

A

Normalisation is a way of storing numbers so that maximum precision and accuracy is obtained. It also ensures that a specific representation of a number is unique. Allows for more accurate multiplication (as it maintains the maximum number of bits of precision for a computation) If the more significant bits of the mantissa are all zero then the mantissa has that many fewer bits of precision available for computation.

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

Normalisation how

A

Normalised mantissas always start 01 or 10 (depending on whether the number is positive or negative). So the mantissas first two bits must be different for the number to be normalised. Normalisation is achieved by adjusting the exponent (in order to move the binary point).

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

Accuracy and Range

A

If the number of bits for the mantissa is increased the greater the accuracy of the values that can be represented however the range of values that can be represented is reduced. If the number of bits for the exponent is increased the greater the range of values that can be represented however the accuracy of the values that can be represented is reduced.

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

Denary → F.P. Binary

+ve numbers

A

2.5 in pure binary is 010.1. Mantissa is 010.1, move point 2 places left to 0.101 so exponent becomes 2. Exponent is 0010. Binary value is 0101 0010.

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

Denary → F.P. Binary

-ve numbers

A

+3.5 in pure binary is 011.1 so -3.5 (write up to first 1 and change bits) = 100.1. Mantissa is 100.1, move point 2 places left to 1.001 so exponent becomes 2. Exponent is 0010. Binary value is 1001 0010.

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

F.P. Binary → Denary

+ve numbers

A

0100 0010. Exponent 0010 = 2. Mantissa is 0.100, move point 2 places right becomes 010.0. Value is +2.

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

F.P. Binary → Denary

-ve numbers

A

1001 0010. Exponent 0010 = 2. Mantissa is 1.001, move point 2 places right becomes 100.1. Convert as mantissa is -ve (write up to 1st 1 and change bits) 011.1. Value is -3.5.

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