Coding Systems And Errors Flashcards

1
Q

What is ASCII(American standard code for information Interchange)

A

Based on 7 bits of data for each character
128 different characters can be represented

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is extended ASCII

A

8 Bits of data per character
256 different characters represented
For English language characters, most significant bit will be zero

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is UNICODE

A

Industry standard code, 16 bits of data, 65,536 characters possible
ASCII and Extended ASCII incorporated
Extended ASCII characters have upper byte set to all zeros

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the common reasons for errors to happen when communicating between computers

A

Faulty hardware
Electromagnetic interference

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are the 3 types of error detection systems

A
  • Checksums
    -Parity
    -Majority voting
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is checksum

A

A string of digits added to the end of the data to check the data is accurate. Calculated from the data itself using an algorithm

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is Check digit

A

A special case of a checksum that is only one digit long, appropriate for small blocks of data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are examples of algorithms for creating check digits and checksums

A

-ISBN/EAN-13 barcodes (10(pre 2007) - 12 digits with 1-digit checksum)
-Credit card numbers (16 digits with a 2-digit checksum)
-Checking integrity of file downloads

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the ISBN/EAN-13 algorithm to calculate check digits

A

1- Add all digits in odd positions
2- Add all digits in even positions and triple the answer
3- Add answers to 1 and 2 together
4- Calculate remainder using mod(10)
5- Check digit = 10 - remainder. (Check digit is 0 if this gives 10)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is parity system

A

With even parity an extra bit is added at the end which will make the number of ‘1’s in the sequence even

With Odd parity an extra bit is added which will make the number of ‘1’s in the sequence odd

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is majority voting

A

Where for each bit in a sequence a fixed number of that bit will be sent, then the receiver will go with the most common value

For example 5 bits will be sent per bit so if one is wrong the majority will be right and the receiver will go with the common value

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Name an advantage and disadvantage of using Checksum

A

Adv
- Can identify one or more errors

Dis
- Needs more processing than other systems
- Can’t correct errors found

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Name an advantage and disadvantage of using parity

A

Adv
- Simple to implement

Dis
- Can only detect an odd number of errors
- Can’t correct errors found

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Name an advantage and disadvantage of using majority voting

A

Adv
- Can correct errors found when receiver takes the common value

Dis
- Requires a lot more data to be sent, due to the bits sent to create the majority

How well did you know this?
1
Not at all
2
3
4
5
Perfectly