Data 1 Flashcards

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

Why is binary used for computers?

A

Because computers are made of digital switches (transistors) that can either be on or off. We use binary digits (bits) to represent these transistors’ states.

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

What is the general formula for the relationship between number of bits and number of binary patterns?

A

number of binary patterns = 2 ^ number of bits

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

What are all the multiples of bytes in ascending order?

A

bit (b)
nibble (N)
byte (B)
kibibyte (KiB)
mebibyte (MiB)
gibibyte (GiB)
tebibyte (TiB)
pebibyte (PiB)

Burger
King
Made
Great
Toast
Previously

(but now?)

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

How many bits in a nibble?

A

4

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

How many bits in a byte?

A

8

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

How many bytes in a kibibyte?

A

1024

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

What is an unsigned number in binary?

A

a positive number

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

What is

overflow?

A

an error that occurs when the number of bits reserved for the result of a calculation are not enough to store all the bits from the number

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

What is a signed number in binary?

A

a negative number

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

What is

two’s complement?

A

a way of representing negative numbers in binary where the most significant bit is negative

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

How can you turn a binary number negative?

A
  1. flip the bits
  2. add 1
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What are

binary shifts?

A

shifts which are used to move all the bits in a binary pattern left or right

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

What are

logical shifts?

A

shifts which treat all the bits of a binary pattern in the same way, irrespective of what the pattern represents

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

What is bad about

logical shifts?

A

an imprecise result may be produced

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

What are the benefits of

arithmetic shifts?

A

they give us the ability to divide negative numbers by 2^n

(because the value in the MSB is preserved)

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

What is hexadecimal used for?

A

to concisely represent strings of binary numbers for humans to read/write