GCSE Computer Science Paper 2
Covers CPU and the Fetch-Execute Cycle, Memory and Storage, Networks, Topologies and Protocols and 9 more.
Questions
Question 1 [1 mark]
Networks, Topologies and Protocols
A network engineer explains that every device on a network has both a MAC address and, usually, an IP address.
State one difference between a MAC address and an IP address.
Question 2 [2 marks]
Number Systems: Binary and Hexadecimal
Convert the denary number 22 into an 8-bit binary number.
Question 3 [3 marks]
Boolean Logic and Logic Gates
An OR gate has two inputs, A and B.
State the output of the OR gate for each of these input combinations: A=0,B=0 ; A=1,B=0 ; A=1,B=1.
Question 4 [4 marks]
Cyber Security Threats and Measures
A company's IT policy lists four ways staff should keep their accounts secure: using strong passwords, not sharing passwords, locking their screen when away from their desk, and reporting suspicious emails.
State why each of these four measures helps keep an account secure.
Question 5 [4 marks]
Ethics, Law and Environmental Impact
The UK GDPR sets out principles for how personal data must be handled.
State four principles that organisations must follow when processing personal data under the UK GDPR.
Question 6 [2 marks]
Number Systems: Binary and Hexadecimal
Subtract the 8-bit binary number 00011010 from the 8-bit binary number 01000101, giving your answer as an 8-bit binary number.
Question 7 [3 marks]
CPU and the Fetch-Execute Cycle
A laptop CPU can briefly boost above its base clock speed. Under sustained heavy load, its cooling system and power supply cannot support that boost speed continuously.
Explain why this CPU reduces its clock speed after a period of boosting.
Question 8 [3 marks]
Representing Text, Images, Sound and Compression
A company scans a page of dense, printed text and considers using RLE to compress the scanned image.
Discuss whether RLE would achieve much compression on a typical scanned page of dense printed text, referring to the pattern of pixel values across the page.
Question 9 [4 marks]
Memory and Storage
A photo file is 2.5 MB. A USB flash drive has 4 GB of free space. Use 1 GB = 1024 MB.
Calculate the maximum number of complete copies of the photo file that could be stored on the free space of the drive. State one assumption you have made in your calculation.
Question 10 [4 marks]
Operating Systems and Utility Software
A user wants to email several large files to a colleague, but the email provider limits attachments to 20 MB.
Explain how using file compression utility software could help solve this problem, and state one downside of compressing files before sending them.
Question 11 [5 marks]
Programming Constructs
A programmer declares a variable inside a subroutine, and a different variable outside any subroutine, in the main part of the program.
Explain where local and global variables are declared and where each is accessible. Then explain one risk of choosing a global for temporary subroutine data.
Question 12 [5 marks]
Algorithm Design and Trace Tables
The following pseudocode is run:
numbers = [4, 9, 2, 7]
largest = numbers[0]
for i = 1 to 3
if numbers[i] > largest then
largest = numbers[i]
endif
next i
print largest
Trace this pseudocode, stating the value of largest before the loop starts and after each comparison, and state the final value printed.
Question 13 [5 marks]
Searching and Sorting Algorithms
A programmer needs to sort a list of 1 million customer records by surname, and this sort needs to be repeated regularly as new customers are added.
Compare a bubble sort with a merge sort for this task, and recommend which the programmer should use, justifying your answer.
Question 14 [5 marks]
Networks, Topologies and Protocols
A small business in Cardiff is fitting out a new office and must choose between a wired Ethernet connection and Wi-Fi for its 15 computers.
Discuss the factors the business should consider, referring to speed, reliability and cost in your answer, and recommend an option.
Question 15 [5 marks]
Operating Systems and Utility Software
A design agency in Bristol is deciding whether to upgrade a computer from 4 GB of RAM running an older operating system, to 16 GB of RAM running a modern operating system.
Evaluate the impact this upgrade would have on the computer's performance, referring to multitasking and virtual memory in your answer.
Question 16 [5 marks]
Ethics, Law and Environmental Impact
A social media platform allows users to post anonymously, without their real identity being shown to other users.
Discuss the ethical issues raised by allowing anonymous posting, referring to both a benefit and a drawback.
Model solutions
| Question 1[1 mark] | |
|---|---|
| Answer or working | Marks |
| one accurate paired distinction, for example MAC addresses identify interfaces on the local link whereas IP addresses are logical addresses used to route between networks; alternatively credit a normally hardware-assigned MAC versus a network-assigned/changeable IP, without requiring permanence | B1 |
| Final answer: A MAC address identifies a network interface for local-link delivery; an IP address is a logical address used for routing between networks. MAC addresses can be changed/spoofed. One valid paired difference is sufficient. | |
| Question 2[2 marks] | |
|---|---|
| Answer or working | Marks |
| a correct method using binary place values (128, 64, 32, 16, 8, 4, 2, 1) | M1 |
| 00010110 | A1 |
| Question 3[3 marks] | |
|---|---|
| Answer or working | Marks |
| A=0, B=0 gives output 0. | B1 |
| A=1, B=0 gives output 1. | B1 |
| A=1, B=1 gives output 1. | B1 |
| Final answer: A=0,B=0: 0. A=1,B=0: 1. A=1,B=1: 1 (OR outputs 1 whenever at least one input is 1) | |
| Question 4[4 marks] | |
|---|---|
| Answer or working | Marks |
| a strong password is harder for an attacker to guess or crack using a brute-force attack | B1 |
| not sharing passwords means only the account owner should ever be able to log in as themselves | B1 |
| locking the screen when away prevents someone else in the office from using the account while the owner is not present | B1 |
| reporting suspicious emails helps stop a phishing attempt succeeding, and can warn colleagues who may have received the same email | B1 |
| Final answer: Strong passwords resist guessing/cracking, not sharing keeps the account to one person, locking the screen stops misuse while away, and reporting phishing emails helps stop attacks succeeding | |
| Question 5[4 marks] | |
|---|---|
| Answer or working | Marks |
| one distinct UK GDPR principle from lawfulness/fairness/transparency, purpose limitation, data minimisation, accuracy, storage limitation, integrity/confidentiality, accountability | B1 |
| a second different principle from that set | B1 |
| a third different principle from that set | B1 |
| a fourth different principle from that set; do not count components of one grouped principle twice | B1 |
| Final answer: Any four distinct principles: lawfulness, fairness and transparency (one grouped principle); purpose limitation; data minimisation; accuracy; storage limitation; integrity and confidentiality; accountability. | |
| Question 6[2 marks] | |
|---|---|
| Answer or working | Marks |
| Valid subtraction method: binary borrowing, adding the two's complement, or 69-26=43 followed by conversion. | M1 |
| 00101011; accept a correct answer without working for both marks. | A1 |
| Final answer: 00101011 | |
| Question 7[3 marks] | |
|---|---|
| Answer or working | Marks |
| a higher clock rate typically increases power consumption | B1 |
| higher power consumption produces more heat | B1 |
| the given cooling/power limits prevent sustained boost: frequency must fall to remain within safe operating limits | B1 |
| Final answer: On this cooling- and power-limited laptop, boost increases power use and heat. The CPU reduces frequency when it reaches its thermal or power limit; with sufficient headroom other systems can sustain boost. | |
| Question 8[3 marks] | |
|---|---|
| Answer or working | Marks |
| Explains that RLE benefits from long consecutive runs of the same pixel value. | B1 |
| Dense text introduces frequent black/white changes and short runs near letter strokes, reducing the benefit compared with broad flat regions. | B1 |
| Gives a conditional conclusion: margins and white gaps may still provide useful long runs, while count overhead can offset savings on short runs; actual compression depends on the scan and representation. | B1 |
| Final answer: Dense lettering creates short black/white runs that can limit RLE savings, but white gaps and margins may still compress well. Actual savings depend on run lengths, scan details and count overhead; little compression is not guaranteed. | |
| Question 9[4 marks] | |
|---|---|
| Answer or working | Marks |
| convert 4 GB to 4096 MB using the given conversion | M1 |
| divide 4096 by 2.5 to obtain 1638.4 | M1 |
| round down to 1638 complete copies | A1 |
| assume the stated free space is usable for file contents with no additional per-copy filesystem overhead, or another valid additional assumption; do not credit the supplied conversion or assuming the drive has no other files | B1 |
| Final answer: 1638 complete copies, assuming no extra per-copy filesystem overhead within the stated free space. | |
| Question 10[4 marks] | |
|---|---|
| Answer or working | Marks |
| compression reduces the representation size of suitable files | B1 |
| explain a suitable reduction mechanism: lossless coding exploits repeated/redundant data, OR lossy compression discards less important information for suitable media | B1 |
| this may bring attachments within 20 MB, but already compressed files may not shrink enough | B1 |
| one valid downside, such as compression/decompression time, compatible-software need or loss of quality if an explicitly lossy method is used | B1 |
| Final answer: Lossless compression can encode repeated information more compactly and may reduce attachments below 20 MB; it is not guaranteed for every file. Compression/decompression takes time. Accept another valid downside for the stated compression method. | |
| Question 11[5 marks] | |
|---|---|
| Answer or working | Marks |
| Local is declared inside the subroutine | B1 |
| Local is accessible only within its scope | B1 |
| Global is declared at program scope | B1 |
| Global can be accessible across subroutines subject to language rules | B1 |
| Local temporary state reduces accidental interference | B1 |
| Final answer: A local variable is declared inside a subroutine and is accessible only within that scope. A global variable is declared in an enclosing program-level scope and can be accessed by subroutines where the language scope rules allow it. Keeping temporary values local avoids accidental interference; a separate local binding with the same name may hide a global without changing it. | |
| Question 12[5 marks] | |
|---|---|
| Answer or working | Marks |
| largest = 4 before the loop starts, from numbers[0] | B1 |
| when i = 1, numbers[1] = 9, and since 9 > 4, largest becomes 9 | B1 |
| when i = 2, numbers[2] = 2, and since 2 is not greater than 9, largest stays 9 | B1 |
| when i = 3, numbers[3] = 7, and since 7 is not greater than 9, largest stays 9 | B1 |
| the final value printed is 9 | A1 |
| Final answer: 9 | |
| Question 13[5 marks] | |
|---|---|
| Answer or working | Marks |
| a bubble sort compares and swaps adjacent items repeatedly, and the number of comparisons needed grows very quickly as the list gets longer | B1 |
| a list as large as 1 million records, a bubble sort would take an impractically long time to complete | B1 |
| a merge sort divides the list and merges the parts back in order, which scales far better and is much more efficient for large lists | B1 |
| a merge sort does require extra memory to hold the sub-lists while merging, which is a drawback | B1 |
| valid recommendation: merge sort should be used, justified by its far better performance for a list of this size, despite using more memory | B1 |
| Final answer: Merge sort should be used: it scales far better than bubble sort for a list of 1 million records, despite needing extra memory | |
| Question 14[5 marks] | |
|---|---|
| Answer or working | Marks |
| wired Ethernet typically offers faster data transfer speeds than Wi-Fi | B1 |
| wired connections are generally more reliable, being less affected by interference or signal loss than wireless | B1 |
| Wi-Fi is usually cheaper and quicker to install, since cabling does not need to be run to every desk | B1 |
| Wi-Fi gives greater flexibility, allowing laptops and mobile devices to be used anywhere in the office | B1 |
| valid recommendation with justification, for example wired connections for fixed desktop computers that need reliable speed, with Wi-Fi offered as well for flexibility | B1 |
| Final answer: Wired Ethernet is faster and more reliable; Wi-Fi is cheaper to install and more flexible. A mix of both, or wired for fixed desks, is a reasonable recommendation | |
| Question 15[5 marks] | |
|---|---|
| Answer or working | Marks |
| more RAM can hold more active application data simultaneously | B1 |
| fewer inactive pages need transfer to/from secondary storage when RAM pressure is reduced | B1 |
| avoiding those slower transfers can improve multitasking responsiveness | B1 |
| a modern OS may add features/support but can also need more resources or lack old application/driver compatibility | B1 |
| qualified judgement: upgrade is useful if RAM pressure is the bottleneck, but OS age alone does not guarantee faster execution | B1 |
| Final answer: More RAM is likely to improve RAM-limited multitasking by reducing slow page transfers. A modern OS is not automatically more efficient and may need more resources or new drivers; benefit depends on workload and compatibility. | |
| Question 16[5 marks] | |
|---|---|
| Answer or working | Marks |
| benefit: anonymity can allow people to express opinions or share experiences, for example about a sensitive personal issue, without fear of personal or professional consequences | B1 |
| benefit development: this can be particularly valuable for people in vulnerable situations, such as whistleblowers or victims of abuse seeking support | B1 |
| drawback: anonymity can also make people feel there will be no consequences for posting abusive, false or harmful content | B1 |
| drawback development: this can make cyberbullying or the spread of misinformation more likely, since the person responsible is harder to identify and hold accountable | B1 |
| balanced conclusion weighing the value of anonymity for legitimate, sensitive uses against the risk it creates for abuse and harmful content | B1 |
| Final answer: Anonymity lets people speak freely about sensitive issues without fear of consequences, but it can also encourage abusive or harmful posts by removing accountability, so platforms must weigh both effects | |