Chapter 2: Number Systems, Sign Representations, and Two's Complement Flashcards

1
Q

What does “bit” stand for?

A

Binary Digit

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

How many values can a bit have?

A

2 possible values (0 and 1)

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

What does a byte consist of?

A

8 bits

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

With n bits, how many possible values are there?

A

2^n possible values

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

1 K values is how many bits? Possible values?

A

2^10 values (10 bits) = 1024 values

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

1 Mega values is how many bits? Possible values?

A

2^20 (20 bits) = 1,048,576 values

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

1 Giga values is how many bits? Possible values?

A

2^30 (30 bits) = 1,073,741,824 values

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

What does ASCII stand for?

A

American Standard Code for Information Interchange

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

ASCII is how many bits and values?

A

7 bits, 128 values

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

What is the Positional Notation System?

A

(Number at Index) x (Base)^Index

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

Can every possible integer value be converted from one base to another?

A

Yes

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

Can every possible fractional value be converted from one base to another?

A

No

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

Describe binary multiplication

A

Choose one number as the multiplier and one as the multiplicand, for each digit in the multiplier, start from the rightmost digit, and write it top-down, shifting one left each time until all are done, then add (check notes for picture)

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

What is range?

A

the variation between the smallest and largest possible values

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

What is precision?

A

how well a number can be represented (how many significant digits)

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

What is accuracy?

A

the difference between a representation and its actual value

17
Q

For Sign and Magnitude Representation, what does the leading bit represent?

A

Positive (0) or negative (1)

18
Q

For Sign and Magnitude Representation, how many representations of 0 are there?

A

2

19
Q

For Sign and Magnitude Representation, what is the range?

A

-2^(n-1) – 1 to 2^(n-1) – 1

20
Q

For Biased Representation, what is Excess-K?

A

shifting/adding the values by a certain number

21
Q

How do you get the original number using Biased Representation?

A

Subtract the excess

22
Q

How do you find the two’s complement of a binary number?

A

copy all zeros from the right until a one is reached, keep the one, flip all remaining bits

23
Q

For the Time example of Two’s complement, how do you find the two’s complement of a number?

A

the two’s complement of any number is 24 – (the number)

24
Q

What are the three important properties of Two’s Complement numbers?

A
  • One unique zero
  • Most-significant bit is the sign bit
  • Range: -(2^n-1) to (2^n-1) – 1
25
Q

When will arithmetic overflow never occur?

A

When adding a positive number to a negative number

26
Q

How can you tell arithmetic overflow has occurred?

A

When the carry-in bit does not equal the carry-out bit after the addition has been completed

27
Q

Shifting to the right means

A

Dividing by 2

28
Q

Shifting to the left means

A

Multiplying by 2

29
Q

Write out the hexadecimal base system and the corresponding binary values

A

A

30
Q

Write out the octal base system and the corresponding binary values

A

A

31
Q

Write out the ranges of the following systems and the numbers of zeros they have: 2’s complement, signed-magnitude, Unsigned

A
  • Unsigned (1 zero) : 0 to 2^(n) – 1
  • Signed and Magnitude (2 zero) : -2^(n-1) – 1 to 2^(n-1) – 1
  • 2’s Complement (1 zero) : -2^(n-1) to 2^(n-1) – 1
32
Q

Write out the possible values from 1 bit to 9 bits

A

A