Skip to content
Book 5: Computer Systems

Book 5 · Chapter 2

Data transmission

§2.1§2.2§2.3Banker · ≈ 15.3 m · ↗B5·2

This chapter is in the ebook.

Read it in full on cswithzak.com. Every question has its mark scheme and every program is ready to run. The free practice for each section is below, with the short code the book prints beside it.

Open in the ebook

For the whole chapter

§2.1 Types and methods of data transmission

Short code B5·2·1

§2.2 Methods of error detection

Short code B5·2·2

§2.3 Encryption

Short code B5·2·3

Breaking data into packets

Short code B5·2·10

Practice for this page of the book: the quiz, flashcards and past-paper questions for its section are listed above.

Packet switching

Short code B5·2·11

Output

Sent:    [[1, 'SEE '], [2, 'YOU '], [3, 'AT S'], [4, 'IX']]
Arrived: [2, 1, 4, 3]
Rebuilt: SEE YOU AT SIX
Run and checked before printing

Serial and parallel transmission

Short code B5·2·12

Practice for this page of the book: the quiz, flashcards and past-paper questions for its section are listed above.

Simplex, half-duplex and full-duplex

Short code B5·2·13

Practice for this page of the book: the quiz, flashcards and past-paper questions for its section are listed above.

Choosing a method for the job

Short code B5·2·14

Practice for this page of the book: the quiz, flashcards and past-paper questions for its section are listed above.

The universal serial bus (USB)

Short code B5·2·15

Practice for this page of the book: the quiz, flashcards and past-paper questions for its section are listed above.

Why errors happen

Short code B5·2·16

Output

01001110 -> 01011110 = 94 ^
00110010 -> 10110010 = 178 
Run and checked before printing

Parity checks

Short code B5·2·17

Output

1011001 has 4 ones
  even parity byte: 01011001
  odd parity byte:  11011001
0110100 has 3 ones
  even parity byte: 10110100
  odd parity byte:  00110100
Run and checked before printing

Output

01011001 4 ones - accepted
01001001 3 ones - ERROR: send again
10110100 4 ones - accepted
Run and checked before printing

Output

sent: 4 ones | received: 4 ones
bits changed: [3, 4]
error detected: False
Run and checked before printing

Parity bytes and parity block checks

Short code B5·2·18

Output

S 01010011
E 11000101
N 01001110
D 01000100
parity byte 10011100
Run and checked before printing

Output

Row that fails: E
Column that fails: 6
Corrected byte: 11000101 = E
Run and checked before printing

Checksum and echo check

Short code B5·2·19

Output

Total of the bytes sent: 520
Checksum sent: 8
Checksum of the bytes received: 4
No match - error, send the block again
Run and checked before printing

Automatic repeat query (ARQ)

Short code B5·2·20

Practice for this page of the book: the quiz, flashcards and past-paper questions for its section are listed above.

Check digits

Short code B5·2·21

Output

Total: 113 | remainder: 3 | check digit: 7
Run and checked before printing

Output

9781234567057 valid
9781234587057 error - enter it again
9781234657057 error - enter it again
Run and checked before printing

Output

978013571357 [9, 21, 8, 0, 1, 9, 5, 21, 1, 9, 5, 21] total 110 check digit 0
978024682468 [9, 21, 8, 0, 2, 12, 6, 24, 2, 12, 6, 24] total 126 check digit 4
Run and checked before printing

Why data is encrypted

Short code B5·2·22

Practice for this page of the book: the quiz, flashcards and past-paper questions for its section are listed above.

Symmetric and asymmetric encryption

Short code B5·2·23

Output

Ciphertext: PHHW DW QRRQ
Decrypted:  MEET AT NOON
Run and checked before printing

Output

Encrypted with the public key: 31
Public key used again: 25
Decrypted with the private key: 4
Run and checked before printing

Workbook: Data transmission

Short code W5·2 · Computer Systems Workbook

The write-in workbook for this chapter has drills, exam-style practice, trace tables, fix-the-mistake and mark-it-yourself pages. Its full mark schemes and an interactive version arrive here with the chapter.

Ask Z about Data transmission
Buy ZAK's books — WhatsApp the books desk: Buy the booksPrint or ebook