Data Representation 1 Flashcards
What is a Bit?
0 or 1, binary digit
What is a byte?
8 bits
What is a Natural number ?
ℕ Positive whole numbers
{0,1,2,3,4…}
What is an Integer number?
ℤ Whole numbers (positive or negative)
{…,-3,-2,-1,0,1,2,3,…}
What is a Rational number?
ℚ Numbers can also be expressed as fractions (ratios of integers)
{…, -42, -1/1, -1/3, -1/2, 0, 1/2, 1/3, 1/1, 7, …}
What is an Irrational number?
Numbers cannot be expressed as a fraction. Examples include π (Pi), √2, e (Euler’s number)
What is ℕ?
Natural numbers
What is ℤ?
Integer numbers
What is ℚ?
Rational number
What is a Real number?
ℝ Positive or negative, large or small, whole numbers or decimal numbers are all Real Numbers.
7 is what type of number (it is more than one)
ℕ (natural), ℤ (integer), ℚ (rational) and ℝ (real)
What is ℝ?
Real numbers
-9 is what type of number (it is more than one)
ℤ (integer), ℚ (rational) and ℝ (real)
1/3 is what type of number (it is more than one)
ℚ (rational) and ℝ (real)
-10/11 is what type of number (it is more than one)
ℚ (rational) and ℝ (real)
π (Pi) is what type of number (it is more than one)
irrational and ℝ (real)
What is an ordinal number?
Ordinal numbers indicate the positions of the values 1st, 2nd, 3rd…
What base is binary?
Base 2 (0 or 1)
What base is decimal/denary?
Base 10 (0,1,2,3,4,5,6,7,8,9)
What base is hexadecimal?
Base 16 (0 to 9 and A,B,C,D,E,F)
How many different values can be represented with n bits?
2^n
How many different values can be represented with 3 bits?
2^3 = 8 different values (000,001,010,011,100,101,110,111)
How many different values can be represented with 8 bits?
2^8 = 256
What is Unsigned binary?
Unsigned binary integers are numbers without any ‘+’or ‘-‘ sign.