Lecture 3 Flashcards

1
Q

Hexadecimal is shorthand for binary. How so?

A

It replaces 4 bits with one hex number. A-F hex digits represent 10 to 15.

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

How do you convert from decimal to binary?

A

Divide each decimal number by 2. Remainders = binary.

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

How do you convert from decimal to hex?

A

Repeatedly divide by 16. Remainders = hex.

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

How do you convert decimal fraction to binary?

A

Repeatedly multiply by 2 until reaching exactly 1. Extract number to left of decimal.

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

How do you convert decimal fraction to hex?

A

Repeatedly multiply fraction by 16 until reaching 1. Extract number to left of decimal.

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

How is sign-magnitude binary done?

A

Leftmost bit tells us of number is negative or positive.

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

How does two’s complement work?

A

Take positive number, flip all ones and zeros, add one.

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

What are the two special cases with two’s complement?

A

Largest number equates to itself. Zero only works if overflow is ignored.

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

What are two’s complement addition rules?

A

When adding two 1’s, write 0 and carry 1. When adding three 1’s, write 1 and carry 1.

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

How is addition with two’s complement performed?

A

Write negative number using two’s complement method and add to other number.

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

What are floating pt numbers?

A

32 bits: 1st bit signed, 8 bits exponent, 23 bits significand.

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

What base is Hex?

A

16.

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