Section 3 Data Representation Flashcards
what is a natural number ?
a whole number that is used for cointing
what is a rational number?
any value that can be expressed as a ratio or a fraction
what is an irrational number?
a number that can not be expressed as a ratio or a fraction
what is an ordinal number ?
decsribes the numerical position of objects
why are hexadecimals used ?
as a shorthand binary since it is simple to represent a byte in just 2 digit
they are easier to remeber compared to a 8 bit sequence
what is a byte?
8 bits
what is ASCII
Americamn Standard Code for Information Interchnage
a way of representing letters, numbers and symbols as binary
what is unicode
a way of representing data using 16 bit binary compared to the 8 bit ascii
what are partity bits?
a parity bit is an additional bit that is used to check that the other bits transmitted are likely to be correct
what is majority voting?
this is a system that requires each bit to be sent 3 times. if a bit is flipped erroneously during transmission over a noisy line, the recipient computer would use the majority rule and assume that the two bits that have not chnaged were therefore correct
what is a check digits?
it is an additional digit at the end of a string of other numbers designed to check for mistakes in input or transmission.
what are the rules for binary addition?
0+0 = 0 1+0 = 1 1+1 = 0 ( carry the 1) 1+1+1 = 1 ( carry the 1)
what is an overflow ?
this is when the result of the addition is greater than 255, and an over flow error occurs where a carry from the most significant bit requires a ninth bit
what is unsigned binary?
unisgned representation of binary can only represent positive numbers
what is signed bianry?
can represent both positive and negative numbers
how do you perform twos compliment?
- write out the positive intergrer in normal binary
- flip all of the bits ( turn the 1s into 0s and turn the 0s into 1s)
- add 1
example : -5 00000101 11111010 11111011