4.5.4 Binary Number System Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

Which type of binary can represent -ve numbers? (Signed or Unsigned)

A

Signed

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

What is the range of decimal numbers that can be represented using unsigned 4 bit binary?

A

0 to 15
2^4-1

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

How many unique bit patterns can be made using 8 bits.

A

2^8 = 256

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

Add the unsigned binary integers 1101 and 110

A

1011 + 110 = 10011 There is no over flow error here since there is no bit restrictions.

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

Multiply the unsigned binary integers 11001001 and 110

A

Perform 1 left shift to the original integer so that it becomes 110010010 and then perform two on the original number again and then total them, 1100100100 this totals to 10010110110

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

011010110110 is a twos compliment signed number with a 8 bit mantissa and a four bit exponent. What is the number in decimal.

A

The exponent is 0110 which is 6.
Therefore we need to shift the 8 bit number
0.1101011 -> 0110101.1
this is equal to 53.5

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

Which of these is a twos compliment number:
A) 11010110
B) 01101101
C) 00010101

A

B, a twos compliment number has to begin with either 01 or 10.

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

01101101 is a fixed point binary number with four bits after the binary point what is the number in decimal?

A

0110.1101
The left comes out to 6 and the right is 1/2+1/4+1/16
so it is 6.8125

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

Convert the number 38.75 into floating point binary with 8 bit mantissa and 4 bit exponent

A

0100110110110
The decimal point moves 6 points to get
0100110.11 = 38.75
Exponent is 0110 -> 6

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

Why might fixed and floating point representations of decimal numbers be inaccurate.

A

Rounding errors can occur in values that cannot be represented exactly by binary.

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

What type of decimal binary allows for the greatest range of numbers?

A

Floating Points

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

Why are floating point numbers normalised?

A

To provide for a maximum level of precision for a given number of bits.

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

What error occurs when a number is too large/small to be represented by a given numbers of bits?

A

Overflow/Underflow

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