week2 Binary Representation Flashcards

1
Q

What is a bit

A

a basic unit of information in a computer. Also called a binary digit.

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

What is a nibble?

A

4 bits

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

what is a byte?

A

8 bits

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

what is a digital

A

finite number of symbols.

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

what is the weighted positional representation?

A

Each digit in the representation is weighted according to its position in the number.

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

Unsigned numbers

A

positive numbers and 0

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

signed numbers

A

negative numbers, 0, positive numbers

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

Width

A

the number of bits a computer can use to hold a number

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

Unsigned overflow

A

when an operation result goes beyond the width of memory location in a computer.

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

signed overflow

A

when you add 2 positive numbers and get a negative result within the given computer’s width.

OR

if you add 2 negative numbers and get a positive result.

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

sign extension

A

when performing arithmetic operations on numbers of different width, we must sign extend numbers.

sign extend numbers mean replicating the sign but 0 or 1 before the number of smaller width before performing operations so that both numbers are the same width.

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

Encoding data means

A

an agreed upon “mapping” of data from one representation to another

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

How to find positive and negative integers in sign-magnitude.

A

need to place 1 in front of a number for a negative integer.

EX:
0001 = + 1
1001 = -1

**leading number indicates the sign of the number.

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

How to find positive and negative integers in 1C

A

TO find the negative numbers, flip the the positive representation of a binary numbers to complement each bit.

EX:

0101 = +5

1010 = -5

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

How to find positive and negative integers in 2C?

A

To find the negative integer: 1C + 1 and omit any resulting carry-out past the width of the machine.

EX:

+5 = 0101 in 2C

-5 = 0101 + 1 = 1011

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

Encoding

A
17
Q

Hexadecimal reprsentation

A
18
Q

Fractions in binary

A
19
Q

Floating-point

A

sign, fraction and exponent

N = (-1) ^ S x 1.fraction x 2^(exponent - 127)