Digital Information: Limitations of Storing Numbers Flashcards

1
Q

Integer

A

any number that can be written without a fractional component

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

Computers use the same strategies to store memory of all numbers
true or false

A

false they use diff srategies for integers and no integers

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

computers represent all data with what

A

bits

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

On a computer which uses 6 bits to represent integers (with 1 bit to represent the sign), which of these operations result in overflow?

a) 15 + 15
b) 24 + 6
c) 30 + 1
d) 3 + 29

A

32 bc the highest number the computer can show is 31

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

overflow

A

when a computer cannot represent a value because it is too high

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

Floating point representation

A

the strategy does a computer works to represent non integers or integers that are too big for the particular computer to store a number

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

how does floating point representation work

A

the number shows up as a number multiplied by a base that is raised to an exponent

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

what is the base used in floating point representation and why

A

ALWAYS 2 bc of bits

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

Roundoff errors

A

errors where computers that are not precise enough round off numbers (like the ones that go on infinitely 1/3) weirdly so that they make calculations wrong

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

Precision

A

how precise a number is represented (how mmany decimal places it can be represented by bits in a computer)

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

Puseudocode

A

codes that you cant actually run but are used for planning programs and for thinking about code independently of specific programming language

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

example of psuedocode

A

a - b
evaluates the result of b subtracted from a

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