3.5 Fundamentals of data representation Flashcards
Natural numbers (symbol, what they are)
N, positive integers including 0
Integers (symbol, what they are)
Z, positive and negative whole numbers including 0
Real numbers (symbol, what they are)
R, any positive or negative number and includes both irrational and rational numbers
Rational numbers (symbol, what they are)
Q, ratio between two integers
Irrational numbers (what they are, example)
can not be represented as a fraction, pi
Ordinal numbers (what they are)
a natural number that describes the numerical position of a value
denary (base-10) numbers
using 0-9 to represent a number, power of 10
binary (base-2) numbers
using 0 or 1 to represent a number, power of 2
most significant and least significant bit
most significant is leftmost and least significant is rightmost
hexadecimal (base-16) numbers
0-9 then A-F, power of 16
why is hexadecimal used as a shorthand for binary?
long sequences of binary are hard to read and understand for humans
how many different values can be represented with n bits?
2^n
kilobytes
1000 bytes, 10^3
megabyte
1 million bytes, 10^6
gigabyte
1 billion bytes, 10^9
terabyte
1 trillion bytes, 10^12
kibibyte
1024 bytes, 2^10
mebibyte
2^20 bytes
gibibyte
2^30 bytes
tebibyte
2^40
ascii
used 7 bits to represent characters, common language for computers
extended ascii
8 bit character set containing 256 characters
unicode
supports languages that use a different language, uses up to 32 bits to represent a character
what is a parity bit?
extra bit added depending on the total number of 1s
why are parity bits used?
to allow the receiving end to detect errors in data transmission
even parity
number of 1s add up to an even number
odd parity
number of 1s add up to an odd number
parity bit disadvantage
multiple errors wont show