60 practice questions
What is the difference between synchronous and asynchronous transmission?
mediumWhat is a repeater?
easyWhat does CSMA/CD stand for and where is it used?
mediumIn serial data transmission, bits are sent:
easyExplain the difference between serial and parallel data transmission, and give one example of where each is used.
mediumUSB (Universal Serial Bus) transmits data using which method?
easyExplain why serial transmission is generally preferred over parallel transmission for sending data over longer distances.
hardIn synchronous data transmission, the sender and receiver are kept in time using:
mediumExplain how 'start' and 'stop' bits are used in asynchronous data transmission.
medium'Baud rate' is a measure of:
mediumWhat is a checksum?
easyExplain how a parity bit is used in error detection.
easyWhat does Hamming code provide that simple parity does not?
hardWhat is the purpose of the checksum included in many network protocols?
mediumDescribe how a hash function could be used to verify that a downloaded file has not been corrupted.
hardWhat does CRC stand for, and what is it used for?
mediumExplain, in outline, how a Cyclic Redundancy Check (CRC) is used to detect errors in transmitted data.
hardA system uses even parity. Which of the following bytes contains a parity error (assume the rightmost bit is the parity bit)?
mediumExplain a key limitation of using a single parity bit for error detection.
mediumCompared to a single parity bit, a checksum calculated over a whole block of data:
mediumA database table stores StudentID, Forename, Surname and TutorGroup. Which field is most likely to be the primary key?
easyExplain the difference between lossy and lossless compression and why a word-processed document would always use lossless compression.
mediumA database stores customer orders. Each order belongs to exactly one customer, but a customer can place many orders. What type of relationship is this?
easyExplain one benefit and one drawback of storing data in a normalised relational database compared to a single large unnormalised table.
hardRun-length encoding (RLE) compression works best on data that contains:
mediumExplain how run-length encoding (RLE) compresses data, using an example.
mediumIn Huffman coding, characters that occur more frequently in the data are given:
mediumBriefly describe how a Huffman tree is constructed and used to compress data.
hardWhich of the following file formats typically uses lossy compression?
easyExplain the trade-off involved when choosing to use lossy compression for a photograph that will be shared online.
mediumWhat is the function of an SSL/TLS certificate?
mediumWhat is the difference between symmetric and asymmetric encryption?
hardExplain why data sent over a public network (e.g. the internet) is often encrypted, even if it is also being error-checked.
mediumIn public-key (asymmetric) cryptography, the public key is used to:
mediumDescribe, in outline, the main steps of the SSL/TLS handshake when a browser connects securely to a website.
hardA digital signature is created by:
mediumExplain how public-key (asymmetric) cryptography solves the 'key distribution problem' associated with symmetric encryption.
hardIn asymmetric encryption, which key must be kept secret by its owner and never shared?
easyExplain the role of a Certificate Authority (CA) in the SSL/TLS handshake process.
mediumWhen a website's address shows 'https://' and a padlock icon in the browser, this indicates that:
easyDescribe the client-server model.
easyWhat is the difference between circuit switching and packet switching?
mediumExplain the difference between star and mesh topologies.
mediumWhat does NAT do?
hardWhat is the role of DNS?
easyExplain what is meant by "client-server" networking, including the role of the server.
mediumA network uses the star topology. What happens if the central switch fails?
easyWhich of the following best describes the purpose of the Domain Name System (DNS)?
easyWhat is the purpose of an IP address?
easyExplain how a router uses a routing table to forward a packet towards its destination.
mediumExplain what a VLAN is and give one reason why organisations use them.
hardWhat is the difference between TCP and UDP?
mediumWhich layer of the TCP/IP model handles IP addressing and routing?
mediumWhat is a firewall and how does it protect a network?
easyThe TCP/IP model is typically described as having how many layers?
easyDescribe the role of the Application layer in the TCP/IP model, giving two example protocols.
mediumWhich two protocols operate at the Transport layer of the TCP/IP model?
mediumDescribe the role of the Link (Network Access) layer in the TCP/IP model.
mediumWhich Application layer protocol is used by web browsers to request and receive web pages?
easyExplain what is meant by 'encapsulation' as data passes down through the layers of the TCP/IP model before being transmitted.
hard| Compression | Description | Quality | Examples |
|---|---|---|---|
| Lossless | Original reconstructed bit-for-bit | 100% | RLE, Huffman, ZIP, PNG, FLAC |
| Lossy | Data permanently discarded for smaller size | Reduced | JPEG, MP3, AAC, H.264 |
Pixel row: WWWWWWBBBWWWWWWWWWWWWB (22 pixels) RLE: 6W 3B 12W 1B โ 4 pairs (8 values) โ much smaller than 22 values. Worst case: WBWBWB โ 1W 1B 1W 1B 1W 1B โ 12 values vs 6 โ BIGGER (no repeats to exploit).
Text "AAAABBBCCD" freq: A=4 B=3 C=2 D=1 Build tree by repeatedly merging the two lowest: (D1,C2)->3 ; (3,B3)->6 ; (6,A4)->10 Resulting codes (shorter for frequent): A=0 B=10 C=110 D=111 Fixed 8-bit: 10 chars x 8 = 80 bits Huffman: 4(1)+3(2)+2(3)+1(3)=4+6+6+3 = 19 bits Compression ratio โ 4:1
1. Client โ server: "hello", supported cipher suites 2. Server โ client: digital certificate (contains server's PUBLIC key, signed by a CA) 3. Client verifies the certificate via the CA 4. A symmetric SESSION key is agreed using the server's public key (asymmetric) 5. All further data is encrypted with the fast SYMMETRIC session key (AES)
| Normal form | A table is in this form whenโฆ |
|---|---|
| 1NF | all values are atomic (no repeating groups), and each record is unique |
| 2NF | it is in 1NF AND every non-key attribute depends on the WHOLE primary key (no partial dependency) |
| 3NF | it is in 2NF AND no non-key attribute depends on another non-key attribute (no transitive dependency) |
SELECT name, grade FROM Student WHERE grade >= 60 ORDER BY grade DESC; -- join two tables SELECT s.name, c.title FROM Student s INNER JOIN Class c ON s.classID = c.classID WHERE c.title = 'Computer Science'; INSERT INTO Student (id, name, grade) VALUES (7, 'Sam', 72); UPDATE Student SET grade = 80 WHERE id = 7; DELETE FROM Student WHERE id = 7;
Bank transfer = two operations: 1. subtract ยฃ50 from account A 2. add ยฃ50 to account B If the system crashes after step 1 only, ยฃ50 vanishes. Wrapping both in ONE transaction means either BOTH happen or NEITHER does โ money is never lost.
| Protocol | Layer | Purpose |
|---|---|---|
| HTTP / HTTPS | Application | Transfer web pages; HTTPS adds TLS encryption |
| FTP | Application | Transfer files between hosts |
| SMTP | Application | Send email |
| IMAP / POP3 | Application | Retrieve email (IMAP keeps mail on server; POP3 downloads) |
| DNS | Application | Resolve a domain name to an IP address |
| TCP | Transport | Reliable, ordered, connection-oriented delivery |
| UDP | Transport | Fast, connectionless, no delivery guarantee |
| IP | Internet | Address and route packets across networks |
The TCP/IP stack (Application, Transport, Internet, Link) divides networking into layers, each with one responsibility. Benefits: each layer can be developed/changed independently (e.g. swap WiFi for Ethernet at the Link layer without touching HTTP), it standardises interfaces so products from different vendors interoperate, and it simplifies troubleshooting.
| Processing | Runs | Pros | Cons |
|---|---|---|---|
| Client-side (JS) | In the user's browser | Fast/responsive; reduces server load; instant validation feedback | Code is visible/editable; can be disabled; depends on the device |
| Server-side | On the web server | Secure (code hidden); can access databases; consistent for all users | Adds server load; needs a network round-trip |
Search engines run web crawlers (spiders) that follow hyperlinks to discover pages and build an index mapping keywords to pages. PageRank measures a page's importance by the number AND quality of pages linking to it: a link from a high-ranked page passes more "authority" than one from a low-ranked page, and importance is shared out across each page's outbound links.
PR(A) = (1 - d) + d * ฮฃ ( PR(Ti) / C(Ti) ) d = damping factor (โ 0.85) Ti = pages that link TO page A PR(Ti) = PageRank of linking page Ti C(Ti) = number of outbound links on Ti Start all pages equal, then iterate until values stabilise. A page gains rank from being linked to by important pages that do not link to everything.