w2 Flashcards

1
Q

how does a computer work: von Neumann

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

how does a computer work: modern architecture

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

unsigned numbers

A

those that cannot be preceded by a minus sign

natural numbers, non-negative numbers

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

base-b interpretation of α

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

base-b interpretation of α: transform from base-10 to another base

A

divide by the base_x, the remainder is the rightmost digit. Then divide the result, write down the remainder, and so until the result is 0.

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

and that a0 goest into the rightmost free digit spot, and so on

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

how to transform a number from any base to any other base?

A

multiply with the respective exponents to get the base-10 representation, then transform into the output-base by modulo’s

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

Horner’s rule to evaluate polynomials

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

addition base 2

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

addition and subtraction base 3

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

addition of two bits as a circuit

A

half adder

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

addition of three bits as a circuit

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

addition of n bits as a circuit

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

adder vs ALU

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

representing negative numbers

A

sign-and-magnitude: the first bit is used to signify the sign. 1 is negative, 0 is positive.

1s complement: flip all the bits if you want to get a negation

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

sign-and-magnitude representation

A
17
Q

sign-and-magnitude: addition and subtraction

A
18
Q

1s-complement: representation

A

the first bit still indicates the sign, but the rest is inverted for negative numbers

19
Q

2s-complement: representation

A
20
Q

2s-complement: the value of the number

A
21
Q

how to tell what’s the -m when you know m in 2s-complement representation?

A