4.5 Fundamentals of Data Representation Flashcards

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

How many different values can be represented with n bits?

A

2^n

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

What are the 4 binary prefixes?

A

kibi, Ki - 2^10
mebi, Mi - 2^20
gibi, Gi - 2^30
tebi, Ti - 2^40

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

What are the 4 decimal prefixes?

A

kilo, k - 10^3
mega, M - 10^6
giga, G - 10^9
tera, T - 10^12

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

In unsigned binary, what are the minimum and maximum values for a given number of bits, n

A

minimum : 0

maxiumum : (2^n) - 1

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

What can be represented using signed binary?

A

Negative integers

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

In two’s complement:

when is the leftmost value negative?

A

When it is a 1

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

Why are binary representation of decimals sometimes inaccurate?

A

Some numbers can never be represented in binary, such as decimal number 0.1

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

How do you normalise floating point binary?

A

Convert the number to normal binary. Shift the decimal point n times until there is only 1 digit before it (1.0 if negative, 0.1 if positive). This become the mantissa.
The exponent becomes n in binary form (this also uses two’s complement)

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

What is overflow?

A

When the absolute value of a number is too high for the computer to represent it.

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

What is underflow?

A

When the absolute value of the number is too close to zero for the computer to represent it.

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

How many bits are needed to represent ASCII?

A

7

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