error checking and character sets Flashcards
what is a parity bit
an extra bit added to a string of binary code to ensure that the total number of 1-bits in the string is even or odd
how to get an even parity
If the data already has an even number of 1-bits, the parity bit is set to 0; if odd, the parity bit is set to 1
how to do an odd parity
Ensures the total number of 1-bits in the data is odd. If the data already has an odd number of 1-bits, the parity bit is set to 0; if even, the parity bit is set to 1
what would happen if one of the bits get corrupted using parity bit
the computer will change one of the bits, however it doesn’t know exactly which but has been corrupted
what is majority voting and wheres it used
an error detection and correction method where each bit of data is sent multiple times (usually three times). The receiver checks each set of bits and uses the value that appears most frequently.
- used in space communication, critical financial transactions
What is a check digit and how is it used?
- an additional digit added to a number (such as a barcode or bank account number) that is calculated from the other digits in the number.
- It is used to detect errors in data entry or transmission.
Where would check digit be used in?
In applications, where therewill be manual input, which has high likelihood of human error
what are checksums
- a mathematical algorithm applied to a block of data
— the data from the block is used in order to create the original checksum which is then added and transmitted along with the original data
— if the checksums match, the data has been transmitted correctly
how many combinations of 0s and 1s can a byte hold
256
how many bits are in a byte
8
what are character sets
a collection of characters used to represent text in a computer system
how to fix there not being enough characters
create a character set that is larger than 1 byte/8 bits
unicode character sets are at least how long
16 bits long, giving us an increase in combination of 0s and 1s
what is the job of the parity bitin odd or even parity
- used to ensure that the total number of 1s in each byte, including the parity bit equals an odd or even number
what is overflow
where a carry from the most significant bit requires an additional bit