4.5 Data representation Flashcards
points 4.5.1 - 4.5.5 by 13/12/2023
What is the symbol for a natural number ?
N
What is a natural number ?
Set of infinite positive whole numbers.
What is the symbol for an integer ?
Z
What is an integer ?
Infinite set of both positive and negative whole numbers.
What is the symbol for a real number ?
R
What is a real number ?
Any positive or negative number including those with a decimal , fraction or infinite decimal expansion. (Rational + Irrational)
What is the symbol for a ration number ?
Q
What is a rational number ?
A number that can be expressed as the ratio of two integers (neither zero)
What is error trapping ?
When the denominator of a fractional part is zero producing an unknowable.
How is an irrational number defined ?
R/Q or R-Q
What is an irrational number ?
An irrational number has an infinite number of decimal places without ever slipping into a pattern so cannot be represented by a fraction.
What is an ordinal number ?
A natural number describing the numerical position of a value.
What is an array pointer ?
Ordinal number that points to a specific position in the sequence - start at zero unless stated otherwise.
What is a number base ?
A number base is the number of digits or combination of digits that a system uses to represent numbers.
What base is binary?
2
What base in denary?
10
What base is hex?
16
Why is hex used as shorthand for binary ?
Easier to interpret, uses less digits and is therefore less likely to be recorded incorrectly. eg. MAC addresses and RGB values
Values and notation for prefixes : kilo, mega, giga, tera
10^3 (kB) , 10^6 (MB) , 10^9 (GB) , 10^12 (TB)
Values and notation for prefixes : kibi, mibi, gibi, tebi
2^10 (KiB) , 2^20 (MiB) , 2^30 (GiB) , 2^40 (TiB)
If number of bits is ‘n’ how many binary sequences can a bit represent ?
2^n
eg .1bit –> 2
3bits –> 8
8bits –> 256
What is word size ?
The amount of data that can be handled at one time by the processor
Convert 1011.0011 from Fixed point binary to denary
11 3/16
what do the 4 bits after the pint in fixed point binary represent ? (.0000)
2^-1 = 0.5
2^-2 = 0.25
2^-3 = 0.125
2^-4 - 0.0625