Binary Flashcards

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

what do the 1s and 0s represent in a computer

A

whether the current is flowing or not

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

what is the maximum value that can be stored using

A

2n - 1

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

how to carry out twos complements

A

write the original number in binary then flip the ones and zeros but add 1 to the end

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

what happens in twos complement

A

the highest number is negative

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

what is the minimum value that can be stored using unsigned binary

A

0

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

how to do fixed point representation

A
  • make the highest number (16) negative
  • after 1, do 1/2, then 1/4
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

how to do floating point representation

A
  • ## the highest number changes, but is still negative
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

advantages of using floating point representation over fixed point

A
  • Floating-point numbers can represent both extremely large and very small numbers
  • more efficient for representing fractions and decimals, providing more flexibility for non-integer calculations
  • scale easily with exponents
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

disadvantages of using floating point representation

A

we now need to store where the binary point is on the number line as well as the number that we want to store

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

in floating point representation, what are the fractions called

A

the mantissa

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

in floating point representation, what are the whole numbers called

A

the exponent

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