What are ordinal numbers?
Numbers used for explaining the position of a number in a well ordered set
What numbers are used for counting and measurement?
What is a bit? What is a byte?
The most fundamental unit of information. 8 bits make up a byte
How can you tell how many numbers can be represented by a binary number? What is the maximum value?
Binary prefixes
Kibi - 2^10
Mebi - 2^20
Gibi - 2^30
Tebi - 2^40
Decimal prefixes
kilo - 10^3
mega - 10^6
giga - 10^9
tera - 10^12
Why is hexadecimal used?
Where is hexadecimal used?
memory addresses, error message codes, HTML colour codes
What is pure binary?
Unsigned binary
How does binary shift work?
Shift to right is half, shift to left is double
Describe signed binary numbers.
How to convert from binary to hexadecimal?
Consider each nibble and convert to hexadecimal equivalent 0 to F
How to use two’s complement to find negative binary numbers? How is a carry bit used?
What is an overflow error? What is an underflow error?
How to multiply binary numbers? How to subtract binary numbers?
Multiplication:
- convert to 2^n and perform n shifts
- do long multiplication
Subtraction:
- convert to two’s complement
- add together
How do fixed point binary numbers work?
How do floating point binary numbers work?
What is the mantissa?
The mantissa represents the significant digits of the number.
What is the exponent?
The exponent represents the power of 2 by which to multiply the mantissa.
What is the advantage of floating point binary as compared to fixed point binary?
Floating point binary provides a larger range for large numbers and a greater accuracy for small numbers using the same number of bits
What is normalisation and why do we use it?
Normalisation is the process of maximising the precision of values that are represented in a floating point number for a given number of bits. This minimises rounding errors and increases precision.
Leading 0’s are wasteful and decrease accuracy for positives and 1’s do the same for negatives.
What are the advantages of normalisation?
What is absolute and relative error?
Absolute: difference between number and approximate value of floating point binary.
Relative: percentage error (absolute/true x 100)
How to do bitwise manipulation with AND, OR and XOR?
Compare the binary with the given mask and apply the operation for each bit.
- for AND, 2 same bits output 1 or else 0
- for OR, if either bit is 1 output 1
- for XOR, output 1 if one of the bits is 1 if both or none then 0