3.5.1 + 3.5.2 - Fundamentals of Data Representation Flashcards
define what a set of natural numbers are
a set containing all positive whole numbers AND zero
what is the symbol for a set of natural numbers?
ℕ
for the following, would they be natural numbers or not (and give what it is otherwise)
1) pi
2) -2
3) 5
1) no - irrational
2) no - integer
3) yes
define what a set is
an unordered collection of data which contains each item no more than once
define what an integer is
any whole number (positive and negative)
what is the symbol for a set of integers?
ℤ
give 5 examples of integers
2, -9, 3, 55, 100
define what a rational number is
any number which can be expressed as a ratio or fraction
- with numerator and denominator both being whole numbers
what is the symbol for rational numbers (and why)
ℚ
- as another name for them are quotients
give 3 examples of rational numbers
2/3, 74, -22.1
define what a real number is
any number, integers, fractions, irrational and rational numbers
give 3 examples of real numbers
-310, pi, 22/23
define what an irrational number is
numbers which cannot be written exactly as a fraction in which the numerator and denominators are both whole numbers
what is the symbol for irrational numbers?
it has no symbol
what is the symbol for a real number
ℝ
define what an ordinal number is
integers used to describe the numerical
positions of objects in relation to others
give 2 examples of an ordinal number
2nd, 12th
how do arrays utilize ordinal numbers?
arrays index items using ordinal numbers
what kind of number should you use to count the number of certain objects you have?
natural numbers
what kind of number should you use to measure a value?
real numbers
what is a cardinal number?
the number which says what the value of a position in a list is
so in the list
2 8 5 3 0
the 2nd position = ordinal number
but the cardinal number is 8
convert 67 (denary) to binary
01000011 (little 2 on bottom or mark lost)
convert AE to denary
174
convert 88 to hexadecimal
58 (little 16)
convert to denary:
a) 9E
b) 7F
c) F3
a) 158
b) 127
c) F3
describe what letters and numbers are used for what in hexadecimal
0-9 den = 0-9 hex
10-15 den = A-F hex
hexadecimal is a …… for binary
shorthand
why is hexadecimal used as a shorthand for binary?
- more compact
- easier to convert
- easier to write/represent
(ie. less digits used)