Lecture 7 Conversion to Different Number Bases Flashcards

1
Q

What is the first step to convert between bases?

A

Convert to base 10 first [1].

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

What is the second step to convert between bases?

A

Perform successive division by the new base [1].

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

What is successive division?

A

Successive division involves whole numbers, without decimals [1, 2].

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

How do you perform successive division?

A

Divide the number, keep track of the remainder, and prepend it to the existing remainders [2, 3].

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

When do you stop successive division?

A

When the number is unsigned and can’t be divided any further [4].

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

How do you convert 631 base 7 to base 5?

A

Convert 631 base 7 to 316 base 10, then use successive division by 5 to get 2231 base 5 [5].

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

What is a shortcut for converting between base-2 numbers (binary) and their variants (quaternary, octal, hex)?

A

You can easily convert between them without using base-10 as an intermediate form [5].

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

How many binary digits represent each digit in base-8 (octal)?

A

Each digit in base-8 is represented by 3 digits in binary because log2(8) = 3 [6].

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

How do you convert 741 base 8 to binary?

A

7 in base 8 is 111 in binary, 4 in base 8 is 100 in binary, and 1 in base 8 is 001 in binary. Thus, 741 in base 8 is 111100001 in binary [6].

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

How many binary digits represent each digit in hexadecimal?

A

Each digit in hexadecimal is represented by 4 digits in binary because log2(16) = 4 [6].

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

How do you handle fewer than 4 bits when converting binary to hexadecimal?

A

Prepend as many zeroes as needed until you have 4 bits [7].

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

What happens if an additional bit is produced during the addition of binary numbers because of a carry out?

A

The carry out is stored elsewhere, such as in a status register on processors [7].

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

What is overflow?

A

Overflow is when a computer stores an incorrect value after an operation due to not having enough memory to represent the number [8].

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

In subtraction of unsigned binary numbers, what do you do when you need to subtract 1 from 0?

A

Borrow from the next significant bit, which effectively becomes 10 (base 2) - 01 (base 2) [9].

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

What are the two methods covered for representing signed numbers in binary?

A

Sign/Magnitude Representation and Two’s Complement [10].

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

What are the two components of Sign/Magnitude Representation?

A

Sign: The most significant bit indicates the sign (1 for negative). Magnitude: The remaining bits represent the magnitude as an unsigned integer [10].

17
Q

How is a negative number represented in Sign/Magnitude?

A

“The most significant bit is set to 1 to indicate a negative number, and the remaining bits represent