Chapter 4 Flashcards

1
Q

Explain sign and magnitude representation.

A

One bit represents the sign. 0 is positive, 1 is negative and the other bits represent magnitude.

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

What are the problems with sign and magnitude method?

A

There exists both +0 and -0

Requires extra logic circuits for analysing sign bits
Requires separate adder and subtractor.

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

How is a number converted from unsigned binary to 2’s complement?

A

Invert all bits and add 1.

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

How is a number converted from 2’s complement to signed binary?

A

Invert all bits and add 1

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

If we have n bits to represent numbers what range of positive and negative can we represent using 2’s complement.

A

[-(2^n/2) , (2^n/2) - 1]

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

T or F. In 2’s complement of the MSB is 0 then positive, else negative.

A

True.

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

How can overflow be detected in 2’s complement?

A

If the carry in to the MSB is different from the carry out.

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

How many bits do we need to add two n bit numbers without worrying about overflow?

A

n + 1

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

How many bits do we need to multiply two n bit numbers without worrying about overflow?

A

2n

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

How is negative multiplication done?

A

When multiplying n bit negative by n bit need to add n 1’s to start of 1st number.

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

How does binary long division work?

A

Subtract to get remainder and number of subtractions which is either 1 or 0 is part of answer.

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

What does radix mean?

A

Base

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

Explain how to convert binary real to real decimal.

A

Convert left-hand side of decimal as normal.

Right-hand side = 2^-1 + 2^-2 + 2^-4 + … + 2^-x

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

Explain how to convert real decimal to binary real.

A

Convert left-hand side of decimal as normal.

Right-hand side:
Repeatedly multiply by 2, extract any integer part generated, than re-write the integer parts top down.

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

Convert 0.3125 (10) into binary.

A

0.3125 * 2 = 0.625
Integer Part: 0

0.625 * 2 = 1.25
Integer Part: 1

0.25 * 2 = 0.5
Integer Part: 0

0.5 * 2 = 1
Integer Part: 1

Therefore; 0.3125 (10) = 0.0101 (2)

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