Topic 5 - Data Representation - Complete Flashcards
Define natural numbers? (N)
WHOLE POSITIVE NUMBERS
Is a whole number that is used in counting
N = {0,1,2,3,4,5}
Define integer numbers? (Z)
Includes the natural numbers and their negatives. Can’t be a fraction
Z = {-2,-1,0,1,2}
Define rational numbers? (Q)
Can be written as a simple fraction or ratio
Q = {7/2, 8/1, 1/2}
Define irrational numbers? (Q’ or no symbol)
Cannot be written as a fraction or ratio
(not all square roots are irrational e.g. √4 = 2)
Q’ = {√2, √3, π, √99}
Define real numbers? (R)
Used for measurement
Includes whole numbers, integers, rational numbers, irrational numbers, positive or negative or 0.
Define ordinal numbers?
Used to describe the position of an object in an ordered list
a = 1st
b = 2nd
c = 3rd
Define base 10?
Is decimal
{0, 1, 2, 3, 4, 5, 6, 7, 8, 9}
Define base 2?
Is binary
{0,1}
Define base 16?
Is hexadecimal
{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F}
What is the number arrangement for converting binary to decimal?
128, 64, 32, 16, 8, 4, 2, 1
Define the 5 things:
- Binary code
- Bit
- Byte
- nibble
- Kibibyte
- Based on a number system that uses 0 & 1.
- A single binary digit that can have values of 0 & 1.
- A group of 8 bits. Max decimal is can store is 255.
- A group of 4 bits or half a byte.
- Unit used for digital information, 1 kibibyte = 1024 bytes
What are the binary powers for units:
- Kibibyte
- Mebibyte
- Gibibyte
- Tebibyte
- Kibibyte = 2^10
- Mebibyte = 2^20
- Gibibyte = 2^30
- Tebibyte = 2^40
What are the decimal powers for units:
- Kilobyte
- Megabyte
- Gigabyte
- Terabyte
- Kilobyte = 10^3
- Megabyte = 10^6
- Gigabyte = 10^9
- Terabyte = 10^12
Define signed binary?
Numbers which indicate they are positive or negative
Define unsigned binary?
Numbers which don’t indicate if they are positive or negative - can be used to store larger numbers.
Min value = 0 and max value = 2^n-1
What are the 4 rules of binary addition?
0+0=0
0+1=1
1+1=0,1
1+1+1=1,1
Define signed binary using two’s complement?
The most significant bit will indicate 1 for a negative number and 0 for positive.
What are the steps for two’s complement?
Flip the digits
Add 1
Define fixed point binary?
Is used to represent a fractional part of a number, where the binary point is in a fixed location.
128, 64, 32, 16, 8, 4, 2, 1. 1/2, 1/4, 1/8, 1/16, 1/32
Define normalised floating point?
Is where the binary point position is fixed in a standard form position and the exponent can float to reflect different values of that number.
Define the mantissa?
Is the part of the floating-point number that includes the significant digits within a number.
Define the exponent?
Is the number that the mantissa is shifted right or left by.
Is the power that the number within the mantissa is raised.
Which order is the mantissa & exponent?
Mantissa & exponent