1.2.4 binary Flashcards

1
Q

what is overflow

A

if you are adding two binary 8 bits together you can end up with an extra digit that doesn’t fit

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

what are the effects of an overflow error

A

it may make the program crash or just ignore the extra digit which would produce an unexpected result.

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

which way does a binary shift move to divide

A

right

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

which way does a binary shift move to multiply

A

left

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

10
11
12
13
14
15

A

a
b
c
d
e
f

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

what problem do binary left shifts

A

the number may change as the answer can only be represented in 8 bits

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

what problem do binary right shifts cause

A

the number may be a decimal which can not be represented

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