data representation Flashcards
use of ordinal number
to describe the numerical positions of objects
use of natural number
for counting
use for real numbers
for measurement
base number for decimal
10
base number for binary
2
base number for hexadecimal
16
pros for hexidecimal
more compact
takes less space
bit
fundamental unit of information
byte
group of 8 bits
binary prefix for kibi, mebi, gibi, tebi
kibi, Ki - 2^10
mebi, Mi - 2^20
gibi, Gi - 2^30
tebi, Ti - 2^40
binary prefix for kilo, mega, giga, tera
kilo, k - 10^3
mega, M - 10^6
giga, G - 10^9
tera, T - 10^12
difference between unsigned binary and signed binary
unsigned: holds only positive numbers
signed: holds positive and negative numbers
the minimum and maximum values for a given number of bits, n fo a unsigned binary
0 and 2^n -1
explain why both fixed point and floating point representation of decimal numbers may be inaccurate
Rounding errors can occur
Relative Error
e.g. calculate the relative error of 0.94 +- 0.2:
(0.2 / 0.94 ) x 100
Absolute Error
in 0.94 +- 0.2 , the 0.2 is the absolute error
Compare the advantages and disadvantages of fixed point in terms of range, precision and speed of calculation
pros:
Numbers are represented with precision
cons:
Limited range
Compare the advantages and disadvantages of floating point in terms of range, precision and speed of calculation
pros:
Provides a large range
cons:
Rounds off large numbers which is time consuming
why are floating point numbers normalised
To increase consistency. If each number is represented always by the same bit pattern comparisons would become easier
Overflow
When the result of addition or subtraction goes beyond range
Underflow
When the result of addition or subtraction is less than the range
Differentiate between the character code representation of a decimal digit and its pure binary representation
pure binary representation:
Represents numbers using only 0s and 1s in their binary form
character code representation:
It allows for the representation of decimal digits and characters such as letters, symbols, and control characters
ASCII and unicode
Binary coding system for characters and numbers
Binary coding system that includes international characters
explain why Unicode is preferred
Unicode can represent characters from different languages around the world
check digit
Digit calculated using an algorithm and is generated using other digits in a sequence