1-2: Number Systems And Binary Flashcards

1
Q

explain how binary works

A

as we move from right to left, each digit is worth twice as much as the previous one.
2^0, 2^1, 2^2, 2^3, 2^4……

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

what is the range of values that an 8 bit integer can store

A

256
(0-255)

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

what is the largest binary number that can be held in 8 bits

A

255

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

what is one byte

A

8 bits

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

what do computers always begin their count from

A

0

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

explain the method of twos complement

A

-convert the positive integer into binary
-starting from the right-hand side copy all bits up to and including the one
-flip all other bits

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

what are the 5 basic binary addition rules

A

0 + 0 = 0
0 + 1 = 1
1 + 0 = 1
1 + 1 = 0 (carry the one)
1 + 1 +1(has been carried over) = 1 (carry the one)

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

how do you subtract binary numbers

A

-convert the negative number to binary
-using twos complement represent the negative number
-convert the other number to binary
-add the numbers together

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

how do you multiply numbers in binary

A

Step 1: Write down the multiplicand
and the multiplier(one below the other in proper positions).

Step 2: Multiply the rightmost digit or the least significant bit (LSB) of the multiplier with all the digits of the multiplicand

Step 3: Add a placeholder of ‘0’ before multiplying the next higher-order digit of the multiplier& with the multiplicand.

Step 4: Repeat the same process for all the next higher-order digits until we reach the most significant bit (MSB) which is the left-most digit of the multiplicand with the multiplier.

Step 5: The product obtained in each row is called the partial product. Finally, add all the partial products. To add all the binary numbers use the rules of binary addition.

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

what is base 2, base 10 and base 16

A

base 2 is binary
base 10 is denary
base 16 is hex

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

explain what the numbers in hex are

A

0 - 9 = 0 to 9
10 - 15 = A to F

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

what are natural numbers and give an example

A

positive whole numbers
Eg, 1

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

what are integer numbers and give an example

A

positive and negative whole numbers
Eg, -3 and 5

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

what are rational numbers and give an example

A

set of numbers that can be written as fractions. Since a number such as 7 can be written as 7/1 all integers are rational numbers

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

what are irrational numbers and give an example

A

one that cannot be written as a fraction
Eg, square root of 2 or pi

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

what are real numbers and give an example

A

set of possible real world quantaties
Eg, every number basically

17
Q

what are ordinal numbers and give an example

A

when objects are placed in order
Eg, in lists or arrays

18
Q

what is the symbol for natural numbers

A

N

19
Q

what is the symbol for integer numbers

A

Z

20
Q

what is the symbol for rational numbers

A

Q

21
Q

what is the symbol for real numbers

A

R

22
Q

give the power of kibi and the value

A

2^10
1024

23
Q

give the power of mebi and the value

A

2^20
1048576

24
Q

give the power of gibi and the value

A

2^30
1073741824

25
Q

give the power of tebi and the value

A

2^40
1099511627776

26
Q

give the power of kilo and the value

A

10^3
1000

27
Q

give the power of mega and the value

A

10^6
1000000

28
Q

give the power of giga and the value

A

10^9
1000000000

29
Q

give the power of tera and the value

A

10^12
1000000000000