Fundamentals of Data Representation Flashcards
What is the name of the number set N and what numbers does it include?
Natural Numbers are postive whole numbers, including zero
What is the name of the number set Z and what numbers does it include?
Integer Numbers are any whole positive or negative number including zero.
What is the name of the number set Q and what numbers does it include?
Rational Numbers are any number that can be expressed as a fraction or ratio of integers
What is the name of the number set Q’ and what numbers does it include?
Irrational Numbers are any numbers that cannot be expressed as a fraction or ratio, as the number is infinite or undefined
What is the name of the number set R and what numbers does it include?
Real Numbers are any positive or negative numbers with or without a fractional part
What are Ordinal Numbers?
Ordinal Numbers are numbers that are used to identify position relative to other numbers
What are Cardinal Numbers?
Cardinal Numbers are numbers that identify the size of something, for example a set.
What is a bit?
A single binary digit
What is a byte?
A group of 8 bits
Name the units in ascending order for Binary Numbers
Kibibyte (Ki) = 2^10
Mebibyte (Mi) = 2^20
Gibibyte (Gi) = 2^30
Tebibyte (Ti) = 2^40
Name the units in ascending order for Deneray (Decimal) Numbers
Kilobyte (KB) = 10^3
Megabyte (MB) = 10^6
Gigabyte (GB) = 10^9
Terabyte (TB) = 10^12
Name the bases for Decimal, Binary and Hexadecimal Numbers
Decimal = Base 10 Binary = Base 2 Hexadecimal = Base 16
What are the steps when converting a decimal number to a hexadecimal number?
1) Convert the number to binary
2) Split the binary numbers into groups of 4
3) Work out each hex digit by adding the decimal weightings together
4) Join together, with leftmost first
What are the steps when converting a hexadecimal number to a decimal number?
1) Split the hex number into each of its individual digits
2) Convert to 4 bit binary numbers
3) Join the binary numbers together
4) Convert to decimal using the new weightings
How would you add unsigned binary?
0+0 = 0 0+1 = 1 1+1 = 0 carry 1 to the left 1+1+1 = 1 carry 1 to the left