Networking — MCQs & Practice Questions

58 multiple-choice questions and 36 exam-style questions with mark schemes, organised by chapter, with answers you can check as you go. Free, no sign-up.

New to a topic? Read the Networking notes first, then come back to practise.

01

How Networks Work

Multiple choice · 6

Q1Data is split into packets before transmission mainly because:

  1. APackets travel faster than whole files
  2. BLost data can be resent in small pieces and links can be shared
  3. CComputers cannot store whole files
  4. DIt encrypts the data
Show answer

Correct answer: B — Lost data can be resent in small pieces and links can be shared

Packet switching means a single lost packet costs one retransmission rather than a whole file, and many conversations can interleave on one link. Packets do not travel faster than anything — the medium sets the speed — and splitting provides no encryption at all.

Q2Which protocol would a live video call most likely use?

  1. ATCP, because reliability matters most
  2. BUDP, because late data is useless anyway
  3. CHTTP, because it is a web application
  4. DSMTP, because it streams
Show answer

Correct answer: B — UDP, because late data is useless anyway

A retransmitted video frame arrives after the moment it belonged to, so TCP's guarantees buy nothing and its waiting causes stalls. UDP tolerates a brief glitch to keep the call live. SMTP is for email.

Q3A MAC address differs from an IP address in that it is:

  1. AAssigned by your router each time you connect
  2. BFixed to the hardware and used only on the local network
  3. CAlways a public internet address
  4. DUsed to encrypt traffic
Show answer

Correct answer: B — Fixed to the hardware and used only on the local network

The MAC address is burned into the network interface and only has meaning within one local network segment. The IP address is assigned by the network you join and is what routing across the internet uses.

Q4The purpose of DNS is to:

  1. AEncrypt web traffic
  2. BTranslate domain names into IP addresses
  3. CSplit data into packets
  4. DChoose the fastest route
Show answer

Correct answer: B — Translate domain names into IP addresses

DNS is the internet's phone book, turning a human-readable name into the numeric address routing actually needs. Encryption is TLS, packetising is the transport layer, and route selection is the job of routers running IP.

Q5In the layered model, the main benefit of layers is that:

  1. AData travels faster
  2. BEach layer can be changed without disturbing the others
  3. CFewer packets are needed
  4. DIt removes the need for addresses
Show answer

Correct answer: B — Each layer can be changed without disturbing the others

Layering isolates concerns. Swapping ethernet for wifi replaces the data-link and physical layers entirely, and TCP, IP and your browser never notice. Layers add a little overhead rather than removing any.

Q6TCP establishes a connection using:

  1. AA single SYN message
  2. BA three-way handshake: SYN, SYN-ACK, ACK
  3. CA DNS lookup
  4. DAn encrypted certificate exchange
Show answer

Correct answer: B — A three-way handshake: SYN, SYN-ACK, ACK

Three messages confirm that both sides can send and receive before real data flows. The certificate exchange is the separate TLS handshake, which happens after the TCP connection is already up.

Exam-style questions · 6

Q1[2 marks]
State the difference between a LAN and a WAN.
Answer

A LAN covers a small geographical area such as one building and its hardware is usually owned by the organisation. A WAN covers a large area and typically uses third-party communication links.

Q2[2 marks]
Explain the purpose of an IP address and a MAC address.
Answer

An IP address identifies a device on a network and can change when the device moves to a different network. A MAC address is fixed in the hardware and uniquely identifies the network adapter itself.

Q3[3 marks]
Describe what happens when data is split into packets for transmission.
Answer

The data is divided into equal-sized blocks. Each packet carries a header with the source and destination addresses and its sequence number, and packets may travel by different routes and are reassembled in order at the destination.

Q4[8 marks]
A school is setting up a network for 30 computers in one building.
  1. State whether a LAN or a WAN is appropriate and justify your choice. [2]
  2. Describe the function of a router and of a switch in this network. [4]
  3. State two advantages of networking the computers rather than leaving them standalone. [2]
Mark scheme
  1. A LAN[1]
  2. The computers are all within a single building and the school owns the cabling[1]
  3. A switch connects devices within the LAN[1]
  4. It forwards each frame only to the port of the intended recipient, using MAC addresses[1]
  5. A router connects the LAN to another network, usually the internet[1]
  6. It forwards packets between networks using IP addresses[1]
  7. Advantage: files and printers can be shared[1]
  8. Advantage: software and backups can be managed centrally[1]
Q5[7 marks]
A student enters a web address into a browser and the page loads.
  1. Describe the role of the DNS in this process. [3]
  2. Explain the difference between HTTP and HTTPS. [2]
  3. State two reasons a school might use a firewall on this connection. [2]
Mark scheme
  1. The browser sends the domain name to a DNS server[1]
  2. The server looks up the matching IP address[1]
  3. The IP address is returned and the browser requests the page from that server[1]
  4. HTTPS encrypts the data in transit, HTTP sends it in plain text[1]
  5. So HTTPS protects information such as passwords from being read if intercepted[1]
  6. To block access to unsuitable or unauthorised sites[1]
  7. To inspect incoming traffic and block unauthorised access to the network[1]
Q6[5 marks]
A company is choosing between a wired and a wireless network for its office.
  1. Give one advantage of a wired connection. [1]
  2. Give one advantage of a wireless connection. [1]
  3. The company handles confidential data. Describe one security measure it should apply to a wireless network and explain how it helps. [3]
Mark scheme
  1. Faster and more reliable, with less interference[1]
  2. Devices can be moved freely and no cabling is needed[1]
  3. Use WPA encryption on the wireless network[1]
  4. Data sent over the air is scrambled[1]
  5. So anyone intercepting the signal cannot read it without the keyaccept MAC filtering or a strong passphrase, explained[1]
02

The Internet and the Web

Multiple choice · 8

Q1The world wide web is:

  1. Athe same as the internet
  2. Ba collection of pages accessed over the internet
  3. Ca type of cable
  4. Da browser
Show answer

Correct answer: B — a collection of pages accessed over the internet

The internet is the infrastructure; the web is one kind of content carried on it, alongside email and file transfer.

Q2DNS converts:

  1. AHTML into a page
  2. Ba domain name into an IP address
  3. Ctext into binary
  4. DHTTP into HTTPS
Show answer

Correct answer: B — a domain name into an IP address

The network routes by numeric address, so the memorable name must be looked up first.

Q3A session cookie is deleted:

  1. Aafter a year
  2. Bwhen the browser is closed
  3. Cnever
  4. Dwhen the page reloads
Show answer

Correct answer: B — when the browser is closed

It is held in memory for the duration of the visit. A persistent cookie is written to disk and survives until it expires.

Q4A cookie can:

  1. Arun a program
  2. Binfect a computer with a virus
  3. Cstore text data for a website
  4. Daccess any file on the disk
Show answer

Correct answer: C — store text data for a website

It is a small text file readable only by the site that set it. It cannot execute, so it cannot be malware.

Q5HTTPS differs from HTTP in that it:

  1. Ais faster
  2. Bencrypts the traffic
  3. Cuses a different port only
  4. Dworks without DNS
Show answer

Correct answer: B — encrypts the traffic

It is the same protocol with encryption added, secured by a digital certificate that also confirms the site's identity.

Q6The padlock in a browser means:

  1. Athe site is trustworthy
  2. Bthe connection is encrypted and the certificate is valid
  3. Cno cookies are used
  4. Dthe site is government approved
Show answer

Correct answer: B — the connection is encrypted and the certificate is valid

It says the connection is secure and the site is who its certificate says. A fraudulent site can obtain a valid certificate.

Q7Which happens FIRST when a URL is entered?

  1. Athe HTML is parsed
  2. Ba DNS lookup
  3. CCSS is applied
  4. Dcookies are sent
Show answer

Correct answer: B — a DNS lookup

The browser cannot send a request until it knows the IP address to send it to.

Q8An ISP is:

  1. Aa browser
  2. Bthe company providing the internet connection
  3. Ca type of server
  4. Da protocol
Show answer

Correct answer: B — the company providing the internet connection

The internet service provider supplies the physical connection and usually the router and IP address that come with it.

Exam-style questions · 6

Q1[2 marks]
Explain the difference between the internet and the world wide web.
Answer

The internet is the global infrastructure of interconnected networks that carries data. The world wide web is a collection of pages and resources accessed over that infrastructure — one of several services using it, alongside email and file transfer.

Q2[2 marks]
What is the purpose of DNS?
Answer

It translates a domain name that people can remember into the IP address the network needs to route data. This also allows a site to move to a different server without its address changing for visitors.

Q3[2 marks]
State two uses of cookies.
Answer

Keeping a user logged in as they move between pages of a site, and remembering preferences such as language, currency or the contents of a shopping basket.

Q4[4 marks]
Describe the sequence of events from entering a URL to a web page being displayed.
Mark scheme
  1. The browser extracts the domain name and requests its IP address from a DNS server[1]
  2. The DNS server returns the IP address, querying other DNS servers if necessary[1]
  3. The browser sends an HTTP request to that address and the server responds with the HTML[1]
  4. The browser requests the further resources the page references, then parses the HTML, applies the CSS and renders the page[1]

DNS lookup → HTTP request → server response → further resource requests → parse and render.

Q5[4 marks]
Explain how HTTPS protects a user entering payment details, and state one thing the padlock does not guarantee.
Mark scheme
  1. The data is encrypted in the browser before it is transmitted[1]
  2. so anyone intercepting it on the network sees only ciphertext and cannot read the card details[1]
  3. A digital certificate issued by a trusted authority supplies the public key and confirms the site's identity[1]
  4. The padlock does not guarantee the site is honest — only that the connection is encrypted and the site is genuinely the one named on the certificatea fraudulent site can hold a valid certificate[1]

Encryption in transit plus a certificate proving identity; the padlock says nothing about the site's honesty.

Q6[6 marks]
An online shop uses cookies and HTTPS.
  1. Explain the difference between a session cookie and a persistent cookie, with a use for each.
  2. Explain why cookies raise privacy concerns.
  3. Explain why a cookie cannot infect the visitor's computer.
Mark scheme
  1. A session cookie is held in memory and deleted when the browser closes — used to keep the customer logged in while moving between pages[1]
  2. A persistent cookie is stored on disk and survives until it expires — used to remember preferences or a basket between visits[1]
  3. A cookie set by an advertiser present on many different sites can be read on each of them[1]
  4. so a record of the user's browsing can be assembled across sites without their being aware of itthe cross-site point is the concern[1]
  5. A cookie is a small text file, not a program, so it cannot be executed[1]
  6. It can only be read by the site that set it, and cannot access other files on the machine — the genuine risk is to privacy, not to the computer[1]

(a) session in memory until the browser closes; persistent on disk until expiry (b) cross-site tracking builds a browsing profile (c) it is data, not a program

03

The Network Stack & Protocols

Multiple choice · 6

Q1The main reason networks are built in layers is that:

  1. Ait looks organised
  2. Beach layer can change independently of the others
  3. Cit makes them faster
  4. Dit uses less memory
Show answer

Correct answer: B — each layer can change independently of the others

Separating jobs into layers lets one (say the physical medium) change without affecting the rest.

Q2Encapsulation means each layer:

  1. Aencrypts everything
  2. Badds its own header as data goes down, and strips it coming up
  3. Ccompresses the data
  4. Dchecks for viruses
Show answer

Correct answer: B — adds its own header as data goes down, and strips it coming up

Each layer wraps the data in its own header on send and unwraps it on receive.

Q3Which protocol is reliable, connection-based and ordered?

  1. AUDP
  2. BTCP
  3. CIP
  4. DHTTP
Show answer

Correct answer: B — TCP

TCP sets up a connection and guarantees ordered, complete delivery, resending losses.

Q4A live video call is best carried over:

  1. ATCP, for reliability
  2. BUDP, for low latency
  3. CHTTP, for compatibility
  4. DDNS
Show answer

Correct answer: B — UDP, for low latency

UDP avoids the delay of resending; a late frame is worse than a dropped one in real-time media.

Q5A port number identifies:

  1. Athe host on the internet
  2. Bwhich program on the host a message is for
  3. Cthe physical cable
  4. Dthe encryption method
Show answer

Correct answer: B — which program on the host a message is for

IP addresses the machine; the port says which application on it should receive the data.

Q6HTTPS differs from HTTP in that it:

  1. Ais faster
  2. Bwraps the traffic in TLS encryption
  3. Cuses no ports
  4. Dworks only on mobile
Show answer

Correct answer: B — wraps the traffic in TLS encryption

HTTPS is HTTP over TLS, so the traffic cannot be read or altered in transit.

04

Addressing & Routing

Multiple choice · 6

Q1An IPv4 address such as 192.168.1.10 splits into:

  1. Aa name and a port
  2. Ba network part and a host part
  3. Ctwo random halves
  4. Dsender and receiver
Show answer

Correct answer: B — a network part and a host part

A subnet mask marks where the network part ends and the host part begins.

Q2IPv6 was introduced mainly because:

  1. Ait is easier to read
  2. BIPv4 addresses ran out
  3. Cit needs no routers
  4. Dit is encrypted
Show answer

Correct answer: B — IPv4 addresses ran out

IPv4's ~4 billion addresses were exhausted; IPv6 provides a vastly larger space.

Q3NAT allows:

  1. Amany devices to share one public IP
  2. Bfaster typing of addresses
  3. Cencryption of all traffic
  4. Dwebsites to load offline
Show answer

Correct answer: A — many devices to share one public IP

Network Address Translation maps many private addresses to a single public one and back.

Q4A router decides:

  1. Athe entire path to the destination
  2. Bonly the next hop for a packet
  3. Cthe encryption key
  4. Dthe domain name
Show answer

Correct answer: B — only the next hop for a packet

Routing is hop-by-hop: each router forwards toward the destination using its routing table, knowing only the next hop.

Q5DNS is best described as:

  1. Aa firewall
  2. Bthe internet's phone book (name → IP)
  3. Ca type of cable
  4. Dan encryption standard
Show answer

Correct answer: B — the internet's phone book (name → IP)

DNS translates human-readable domain names into the IP addresses routers use.

Q6When you type a web address, the first network step is:

  1. Adownloading the page
  2. Ba DNS lookup to get the IP
  3. Csending an email
  4. Dencrypting the disk
Show answer

Correct answer: B — a DNS lookup to get the IP

The name must be resolved to an IP via DNS before any connection to the server can be made.

05

Data Transmission

Multiple choice · 8

Q1Which part of a packet contains the receiver's address?

  1. Apayload
  2. Bheader
  3. Ctrailer
  4. Dchecksum
Show answer

Correct answer: B — header

The header carries the addressing and sequencing information. The payload is the data itself and the trailer holds the error check.

Q2Serial transmission sends:

  1. Aseveral bits at once
  2. Bone bit at a time
  3. Cwhole bytes in parallel
  4. Donly text
Show answer

Correct answer: B — one bit at a time

One bit at a time down a single wire, which is why it works reliably over long distances.

Q3Skew is a problem for:

  1. Aserial transmission
  2. Bparallel transmission over distance
  3. Cwireless only
  4. Dpacket switching
Show answer

Correct answer: B — parallel transmission over distance

Bits travelling down separate wires arrive at slightly different times, and over distance the gap becomes large enough to corrupt the data.

Q4A walkie-talkie is an example of:

  1. Asimplex
  2. Bhalf duplex
  3. Cfull duplex
  4. Dparallel
Show answer

Correct answer: B — half duplex

Both parties can transmit, but only one at a time — which is why users say "over" to hand the channel across.

Q5A telephone call is an example of:

  1. Asimplex
  2. Bhalf duplex
  3. Cfull duplex
  4. Dbroadcast
Show answer

Correct answer: C — full duplex

Both people can speak and be heard simultaneously, so data flows in both directions at the same time.

Q6If one packet arrives corrupted:

  1. Athe whole file is resent
  2. Bthat packet alone is requested again
  3. Cthe file is discarded
  4. Dnothing happens
Show answer

Correct answer: B — that packet alone is requested again

Packets are independent, so only the faulty one needs resending. This is one of the main reasons for packet switching.

Q7USB connectors cannot be inserted the wrong way round because:

  1. Athey are round
  2. Bthey are shaped to fit only one orientation
  3. Cthe software prevents it
  4. Dthey are magnetic
Show answer

Correct answer: B — they are shaped to fit only one orientation

The physical shape enforces it, which removes a whole class of user error before any software is involved.

Q8Parallel transmission is still used:

  1. Afor the internet
  2. Binside a computer over short distances
  3. Cfor USB
  4. Dfor Ethernet
Show answer

Correct answer: B — inside a computer over short distances

Over a few centimetres skew is negligible and the extra wires give real speed. Over metres it becomes unusable, so every external link is serial.

Exam-style questions · 6

Q1[2 marks]
State two items contained in a packet header.
Answer

Any two of: the sender's address, the receiver's address, the packet number, and the total number of packets making up the file.

Q2[2 marks]
Explain why parallel transmission is unsuitable over long distances.
Answer

The bits travel at very slightly different speeds along different wires, so they arrive out of step — a problem called skew — and the data can no longer be read correctly. Long parallel cables also suffer crosstalk between adjacent wires.

Q3[2 marks]
Give an example of simplex transmission and explain why it is simplex.
Answer

A keyboard to a computer: data travels from the keyboard to the machine and never in the other direction, so only one direction is ever used.

Q4[4 marks]
Explain how a file is transmitted across the internet using packet switching, and give two advantages of doing so.
Mark scheme
  1. The file is divided into packets, each with a header containing the addresses and its packet number[1]
  2. Packets travel independently and may take different routes; the receiver reassembles them in order using the packet numbers[1]
  3. Advantage: a single corrupted or lost packet can be resent on its own rather than restarting the whole file[1]
  4. Advantage: many transfers share the same links, and a broken route can be avoided rather than stopping transmission[1]

Split into numbered packets, routed independently, reassembled by number — allowing resends and rerouting.

Q5[4 marks]
Classify each of the following by wires and by direction: (i) a USB connection to an external drive, (ii) a walkie-talkie, (iii) the connection between a CPU and RAM.
Mark scheme
  1. (i) Serial — USB sends one bit at a time[1]
  2. (i) Full duplex in modern versions — data is read and written in both directionsaccept half duplex for USB 1 and 2 with justification[1]
  3. (ii) Serial and half duplex — one party speaks at a time[1]
  4. (iii) Parallel, because the distance is very short, and full duplexinside the machine skew is not a problem[1]

(i) serial full duplex (ii) serial half duplex (iii) parallel

Q6[6 marks]
A company is connecting devices in a new office.
  1. Explain why the network cabling between rooms will use serial transmission.
  2. Give three advantages of USB for connecting peripherals.
  3. Explain what happens if one packet of a file arrives corrupted.
Mark scheme
  1. The distances between rooms are far too great for parallel transmission[1]
  2. Skew and crosstalk would corrupt the data, and serial also needs fewer wires so the cabling is cheaper[1]
  3. USB is a universal standard, so one type of connector serves many different devices[1]
  4. The connector cannot be inserted the wrong way round, and devices are detected automatically with drivers loaded — plug and play[1]
  5. It also supplies power as well as data, so small peripherals need no separate supplyany three advantages[1]
  6. The error-checking value in the trailer fails, so the receiver requests that packet again — only the one packet is resent, not the whole filethe point is that just one packet is affected[1]

(a) skew and crosstalk over distance (b) universal, one-way connector, plug and play, supplies power (c) that packet alone is requested again

06

Error Detection

Multiple choice · 8

Q1Under even parity, the byte 11010010 (including its parity bit) is:

  1. Acorrect
  2. Bcorrupted
  3. Cunreadable
  4. Dodd parity
Show answer

Correct answer: A — correct

Counting the 1s gives four, which is even, so the byte passes the check. That does not guarantee it is right — two flipped bits would also pass.

Q2A single parity check fails to detect an error when:

  1. Aone bit flips
  2. Btwo bits in the same byte flip
  3. Cthe data is text
  4. Dthe byte is all zeros
Show answer

Correct answer: B — two bits in the same byte flip

Two flips restore the original parity, so the count is correct again and nothing is reported.

Q3Which method can identify exactly which bit is wrong?

  1. Asingle parity check
  2. Bparity block
  3. Cecho check
  4. Dcheck digit
Show answer

Correct answer: B — parity block

The failing row and failing column intersect at one cell, so the bit can be corrected without a resend.

Q4A checksum works by:

  1. Asending the data twice
  2. Bcalculating a value from the data and comparing it after transmission
  3. Cadding a parity bit
  4. Dcounting packets
Show answer

Correct answer: B — calculating a value from the data and comparing it after transmission

The receiver recalculates from what arrived. Agreement means the data is almost certainly intact.

Q5A check digit is designed to detect:

  1. Atransmission interference
  2. Bdata entry errors
  3. Clost packets
  4. Dattenuation
Show answer

Correct answer: B — data entry errors

It guards codes typed by people — ISBNs, barcodes, account numbers — rather than data in transit.

Q6In ARQ, a timeout is used to detect:

  1. Aa corrupted packet
  2. Ba packet that never arrived
  3. Ca slow connection
  4. Da parity error
Show answer

Correct answer: B — a packet that never arrived

A lost packet produces no acknowledgement of any kind, so only the expiry of the timer reveals it.

Q7An echo check's main disadvantage is that it:

  1. Acannot detect errors
  2. Bdoubles the amount of data transmitted
  3. Cneeds a parity bit
  4. Donly works on text
Show answer

Correct answer: B — doubles the amount of data transmitted

The entire data is returned, so twice as much travels. It also cannot say which direction the corruption occurred in.

Q8Attenuation means the signal:

  1. Aarrives too early
  2. Bweakens over distance
  3. Csplits into packets
  4. Dis encrypted
Show answer

Correct answer: B — weakens over distance

As it weakens, the difference between a 1 and a 0 becomes harder to distinguish, and eventually bits are misread.

Exam-style questions · 6

Q1[2 marks]
Explain how an even parity check works.
Answer

One bit of each byte is set so that the total number of 1s is even. The receiver counts the 1s in the byte it received; if the total is odd, at least one bit has been corrupted in transmission.

Q2[2 marks]
Give one limitation of a single parity check.
Answer

If two bits flip in the same byte, the parity is restored and the error is not detected. It also cannot identify which bit is wrong, so the data must be resent rather than repaired.

Q3[2 marks]
What is a check digit used for?
Answer

An extra digit calculated from the others and appended to a code such as an ISBN, barcode or account number, so that a data entry error can be detected immediately when the code is typed in.

Q4[4 marks]
Explain how a parity block allows a single corrupted bit to be both detected and corrected.
Mark scheme
  1. Each byte carries a parity bit, so a corrupted byte fails its own row check[1]
  2. An extra parity byte is sent whose bits give the parity of each column across the block[1]
  3. A single flipped bit causes exactly one row and exactly one column to fail their checks[1]
  4. The bit at the intersection of that row and column is the faulty one, so it can simply be flipped back — no resend is neededthe intersection is the key idea[1]

The failing row and failing column intersect at the corrupted bit, which is then flipped back.

Q5[4 marks]
Describe how Automatic Repeat reQuest ensures reliable delivery, including what happens if a packet is lost entirely.
Mark scheme
  1. The receiver checks each packet using an error-detection method such as a checksum[1]
  2. It sends back a positive acknowledgement if the packet is intact, or a negative one if it is corrupted, prompting a resend[1]
  3. The sender starts a timer when it transmits each packet[1]
  4. If no acknowledgement arrives before the timeout, the packet is assumed lost and resent — which covers a packet that never arrived, since the receiver had nothing to checkthe timeout is the mark most often missed[1]

Acknowledgements handle corrupted packets; a timeout handles ones that never arrive.

Q6[6 marks]
A hospital transmits patient records between buildings over a long cable.
  1. Explain two causes of transmission errors over such a link.
  2. Recommend an error-detection method and justify it for this application.
  3. Explain why detection alone is not sufficient here, and what must be added.
Mark scheme
  1. Attenuation — the signal weakens over the distance until a bit is misread[1]
  2. Interference from nearby electrical equipment, which a hospital has a great deal ofaccept skew if parallel[1]
  3. A checksum on each packet, since it detects most corruption across the whole block rather than one byte at a timeaccept parity block with justification[1]
  4. Patient data must be exactly correct — a single wrong digit in a dosage could cause harm — so a strong check is justified even at the cost of extra datathe justification must fit the context[1]
  5. Detection only tells you the data is wrong; it does not deliver the correct data[1]
  6. ARQ must be added so that any packet failing the check, or failing to arrive at all, is automatically requested again until it is received intact[1]

(a) attenuation and interference (b) a checksum, because the data must be exact (c) detection must be paired with ARQ so faulty packets are resent

07

Encryption & Security

Multiple choice · 16

Q1Encryption prevents intercepted data from being:

  1. Acopied
  2. Bunderstood
  3. Cdeleted
  4. Dtransmitted
Show answer

Correct answer: B — understood

The data can still be taken and destroyed. What it cannot be is read, because without the key the ciphertext is meaningless.

Q2In asymmetric encryption, the public key:

  1. Adecrypts messages
  2. Bencrypts messages
  3. Cmust be kept secret
  4. Dis the same as the private key
Show answer

Correct answer: B — encrypts messages

It encrypts only. Even the sender cannot read the message back, which is why publishing the key is safe.

Q3The main problem with symmetric encryption is:

  1. Ait is slow
  2. Bthe key must be shared safely
  3. Cit needs two keys
  4. Dit cannot be broken
Show answer

Correct answer: B — the key must be shared safely

Any channel secure enough to send the key on would have been secure enough for the message itself. Asymmetric encryption exists to solve this.

Q4A brute force attack works by:

  1. Aguessing the algorithm
  2. Btrying every possible key
  3. Cintercepting the message
  4. Dflipping bits
Show answer

Correct answer: B — trying every possible key

It needs no cleverness, only time — which is why key length, and therefore the number of keys to try, is the defence.

Q5Encryption algorithms are published because:

  1. Athey are not important
  2. Bpublic scrutiny finds weaknesses
  3. Cthe key is also public
  4. Dit is a legal requirement
Show answer

Correct answer: B — public scrutiny finds weaknesses

A secret algorithm has been examined by very few people, and an undiscovered flaw is far more dangerous than a public one that has been fixed.

Q6Real secure connections use:

  1. Asymmetric only
  2. Basymmetric only
  3. Casymmetric to exchange a key, then symmetric
  4. Dneither
Show answer

Correct answer: C — asymmetric to exchange a key, then symmetric

Asymmetric solves the key distribution problem, then symmetric handles the bulk data because it is far faster.

Q7Adding one bit to a key length:

  1. Aadds one possible key
  2. Bdoubles the number of possible keys
  3. Chalves the security
  4. Dhas no effect
Show answer

Correct answer: B — doubles the number of possible keys

Each bit has two states, so every extra bit doubles the search space a brute force attack must cover.

Q8Entering card details on an HTTPS page that is actually a fake site:

  1. Ais safe because of the encryption
  2. Bdelivers the details securely to the attacker
  3. Ccannot happen
  4. Dtriggers a browser warning
Show answer

Correct answer: B — delivers the details securely to the attacker

The encryption works perfectly and protects the journey. It says nothing about who is at the other end, which is why phishing defeats it.

Q9Malware that spreads across a network without any user action is a:

  1. Avirus
  2. Bworm
  3. Ctrojan
  4. Dcookie
Show answer

Correct answer: B — worm

A worm is self-replicating and needs no host file or user. A virus requires someone to run the infected file.

Q10Malware disguised as useful software is a:

  1. Aworm
  2. Btrojan
  3. Ckeylogger
  4. Dfirewall
Show answer

Correct answer: B — trojan

The victim installs it deliberately, believing it to be something else — which is why the disguise is the whole attack.

Q11The most effective defence against brute force is:

  1. Aa longer password only
  2. Blocking the account after failed attempts
  3. Ca firewall
  4. Dencryption
Show answer

Correct answer: B — locking the account after failed attempts

Lockout makes exhaustive guessing impossible regardless of speed. A longer password only increases the time required.

Q12Pharming differs from phishing because:

  1. Ait uses email
  2. Bit redirects you even when you type the correct address
  3. Cit is legal
  4. Dit needs a firewall
Show answer

Correct answer: B — it redirects you even when you type the correct address

DNS settings are altered, so no link needs to be clicked — which is why the standard phishing advice does not protect against it.

Q13A firewall protects against:

  1. Asocial engineering
  2. Bunauthorised network traffic
  3. Ca user giving away a password
  4. Dphysical theft
Show answer

Correct answer: B — unauthorised network traffic

It filters traffic against rules. Attacks that bypass the network entirely, such as a phone call, are outside what it can see.

Q14A telephone call claiming to be from IT and requesting a password is:

  1. Aphishing
  2. Bsocial engineering
  3. Ca DDoS attack
  4. Dpharming
Show answer

Correct answer: B — social engineering

It manipulates a person directly with no technical component at all, which is why training rather than software is the defence.

Q15Two-factor authentication protects against:

  1. Aa stolen password being sufficient
  2. Bviruses
  3. CDDoS attacks
  4. Ddata interception
Show answer

Correct answer: A — a stolen password being sufficient

Even with the correct password, the attacker still needs the second factor, which is typically on a device the owner holds.

Q16The most common route for a successful attack is:

  1. Abreaking encryption
  2. Bpersuading a person to act
  3. Cphysically stealing a server
  4. Dguessing an IP address
Show answer

Correct answer: B — persuading a person to act

Modern encryption is impractical to break, so attackers target the person instead — which is why training belongs in every security answer.

Exam-style questions · 12

Q1[2 marks]
Explain what encryption does to data being transmitted.
Answer

It scrambles the data using a key so that it becomes meaningless to anyone who intercepts it. Only someone with the correct key can decrypt it back into readable form.

Q2[2 marks]
Does encryption prevent data being intercepted? Explain.
Answer

No. The data can still be intercepted, copied or deleted exactly as before. What encryption prevents is the interceptor understanding what they have taken, because without the key the ciphertext is unreadable.

Q3[2 marks]
Why is a longer encryption key more secure?
Answer

Each extra bit doubles the number of possible keys, so a brute force attack — trying every key in turn — takes far longer. A key short enough to be tried exhaustively offers no real protection.

Q4[4 marks]
Compare symmetric and asymmetric encryption, giving one advantage of each.
Mark scheme
  1. Symmetric uses the same key to encrypt and decrypt[1]
  2. Advantage: it is much faster, so it suits large volumes of data[1]
  3. Asymmetric uses a public key to encrypt and a matching private key to decrypt[1]
  4. Advantage: no secret key needs to be exchanged, which removes the problem of getting the key to the recipient safelythe key distribution problem is the point[1]

Symmetric: one key, fast. Asymmetric: a public/private pair, no shared secret needed.

Q5[4 marks]
Explain why encryption algorithms are made public rather than kept secret.
Mark scheme
  1. A public algorithm can be examined by cryptographers worldwide[1]
  2. so weaknesses are found and corrected, rather than remaining hidden until an attacker discovers one[1]
  3. Security rests entirely on the key, which remains secret — knowing the method does not read the message[1]
  4. A secret algorithm has been checked by very few people, and once leaked offers no protection at all — "security through obscurity" is not security[1]

Public scrutiny finds weaknesses; secrecy rests on the key alone, not on the method.

Q6[6 marks]
A customer buys goods from an online shop and enters card details.
  1. Explain how HTTPS protects the card details in transit.
  2. Explain why the site uses both asymmetric and symmetric encryption.
  3. Explain one thing encryption does NOT protect against here.
Mark scheme
  1. The data is encrypted in the browser before it is sent, so anything intercepted on the way is ciphertext[1]
  2. Only the shop's server holds the key needed to decrypt it, so an interceptor sees nothing usable[1]
  3. Asymmetric encryption is used first, to exchange a symmetric key safely without any prior shared secret[1]
  4. Then symmetric encryption is used for the actual data, because it is far faster for the volume involvedthe combination is the mark[1]
  5. Encryption does not protect the data once it has been decrypted at the destination[1]
  6. If the shop's database is later breached, or if the customer was tricked into sending details to a fake site in the first place, encryption offers no protection — it secured the journey, not the endpointsaccept phishing as the example[1]

(a) encrypted before sending, decryptable only by the server (b) asymmetric to exchange the key, symmetric for speed (c) it protects the journey, not the endpoints — a breached database or a fake site defeats it

Q7[2 marks]
State the difference between a virus and a worm.
Answer

A virus attaches itself to a host file and requires a user to run that file in order to spread. A worm is self-replicating and spreads across a network by itself, needing no user action at all.

Q8[2 marks]
What is a brute force attack, and give one measure that defeats it?
Answer

An attacker tries every possible password in turn until one works. The most effective measure is to lock the account after a small number of failed attempts, which makes exhaustive guessing impossible however fast the attacker is.

Q9[2 marks]
What does a firewall do?
Answer

It examines data entering or leaving a network and blocks anything not permitted by its rules, preventing unauthorised access and filtering out unwanted traffic.

Q10[4 marks]
Explain the difference between phishing and pharming, and state a defence against each.
Mark scheme
  1. Phishing sends a fraudulent message imitating a trusted organisation, containing a link to a fake site the victim must click[1]
  2. Defence: check the sender and the true destination of any link, and never log in through a link — type the address yourself[1]
  3. Pharming uses malicious code to alter DNS settings so that typing the correct address still leads to a fake siteno link is clicked[1]
  4. Defence: anti-malware to prevent the DNS settings being altered, and checking the HTTPS certificate matches the site you intendedtyping the address does not help here[1]

Phishing needs a click; pharming redirects a correctly typed address. Different attacks, different defences.

Q11[4 marks]
A school network must be protected. Describe four security measures and the threat each addresses.
Mark scheme
  1. Firewall — filters incoming and outgoing traffic, preventing unauthorised access from outside[1]
  2. Anti-malware with automatic updates — detects and removes viruses, worms and spyware, and updates close known vulnerabilities[1]
  3. Access levels — each user sees only what they need, so a compromised student account cannot reach staff records[1]
  4. Two-factor authentication or strong password policy with lockout — protects against brute force and stolen passwordsaccept staff training against social engineering[1]

Firewall, anti-malware with updates, access levels, and strong authentication — each matched to its threat.

Q12[6 marks]
A company suffers two incidents: its website becomes unreachable for several hours, and separately an employee's password is obtained by an attacker who telephoned claiming to be from the IT department.
  1. Name and describe the attack in each case.
  2. Explain why a firewall would not have prevented the second incident.
  3. Recommend one measure against each.
Mark scheme
  1. The website incident is a DDoS attack — the server is flooded with requests from many machines until it cannot respond to genuine users[1]
  2. The password incident is social engineering — the attacker manipulated a person into revealing the password, with no technical attack at all[1]
  3. A firewall filters network traffic against a set of rules[1]
  4. The employee volunteered the password over the telephone, which never touched the network — no traffic rule could have detected itthe reason is the mark[1]
  5. Against DDoS: traffic filtering at the firewall, rate limiting, or a service that absorbs and distributes the load[1]
  6. Against social engineering: staff training and a strict procedure that credentials are never given out over the phone, with any such request verified by calling back on a known number[1]

(a) DDoS and social engineering (b) the password never crossed the network (c) traffic filtering, and training with a call-back verification policy

These questions come from the Networking lessons — each topic has its own notes, worked examples and an interactive diagram.