1.4.1 (Data types) Flashcards

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

How do you convert binary into sign and magnitude?

A
  • The first bit is either a 1 to represent a negative, or a 0 to represent a positive.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How to you converts binary into Two’s Complement (2sC)?

A
  • Flip the bits
  • Add 1
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Change the following into 2sC: 1011010, 1110110, and 0101110

A
  • 0100110
  • 0001010
  • 1010010
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How do you subtract 2 binary numbers?

A
  • Convert second number into 2sC
  • Add them together
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What do you do if there is an overflow when completing a binary subtraction, and why?

A
  • Discard it
  • The method is built around the counter to over flow is discarded
How well did you know this?
1
Not at all
2
3
4
5
Perfectly