GCE A Level Computer Science Paper 2 – Ngahtech Mock 2
- Exam
- Cameroon GCE Board
- Year
- 2026 · Mock 2
- Level
- Upper Sixth
- Duration
- 180 min
- marks
- 100
Source: Original Ngahtech mock paper for GCE A Level Computer Science Paper 2. Not an official GCE Board paper.
Take this paper in practice or timed mode: when you submit, you get your score and the full solutions with an explanation for every question.
Answer all five questions. Each question carries 20 marks; the marks for each part are shown.
- Show your working in calculations and trace tables.
- Draw diagrams in pencil where they are asked for.
- You have 3 hours.
After you submit, compare your answers with the marking scheme and give yourself marks, or ask a teacher to mark them.
- Question 1(a)Structural4 marks⏱ Suggested time: 7 min
Using 8-bit two's complement, calculate 45 - 67 by adding the two's complement of 67 to 45. Convert your answer back to denary.
- Question 1(b)Structural4 marks⏱ Suggested time: 7 min
Explain what overflow is in two's complement addition and show that 100 + 50 overflows in 8 bits.
- Question 1(c)Structural6 marks⏱ Suggested time: 11 min
A water pump P must run when the tank is not full (F = 0) and either the switch is on (S = 1) or it is night (N = 1). 1. Write the Boolean expression for P. 2. Complete a truth table. 3. Draw the circuit using NAND gates only, or explain how it would be built.
- Question 1(d)Structural6 marks⏱ Suggested time: 11 min
Simplify the following, giving the law used at each step: 1. \overline{A} \cdot B + A \cdot B + A \cdot \overline{B} 2. \overline{\overline{A \cdot B} + \overline{C}}
- Question 2(a)Structural6 marks⏱ Suggested time: 11 min
Write an algorithm in pseudocode for a binary search that looks for
Targetin a sorted arrayList[1..N]and outputs its position, or "Not found". - Question 2(b)Structural4 marks⏱ Suggested time: 7 min
Show the contents of the array 6, 2, 9, 4, 1 after each pass of a bubble sort into ascending order.
- Question 2(c)Structural4 marks⏱ Suggested time: 7 min
Compare the efficiency of bubble sort and merge sort for a list of 10 000 student names, using Big-O notation.
- Question 2(d)Structural6 marks⏱ Suggested time: 11 min
A program models bank accounts. Class
Accounthas a private attributeBalanceand methodsDeposit(Amount)andWithdraw(Amount). ClassSavingsAccountadds an attributeRateand a methodAddInterest(). 1. Explain encapsulation, inheritance and polymorphism using these classes. 2. Write theWithdrawmethod so that the balance can never become negative. - Question 3(a)Structural8 marks⏱ Suggested time: 14 min
Describe the stages of compilation: lexical analysis, syntax analysis, semantic analysis, code generation and optimisation.
- Question 3(b)Structural4 marks⏱ Suggested time: 7 min
Explain the difference between direct, indirect and indexed addressing, using
LDA 100as an example for each. - Question 3(c)Structural4 marks⏱ Suggested time: 7 min
State two differences between RISC and CISC processors, and give an example of where each is used.
- Question 3(d)Structural4 marks⏱ Suggested time: 7 min
Three interrupts arrive together: a power failure warning, a printer out of paper, and a keyboard key press. In what order should they be handled? Justify your answer.
- Question 4(a)Structural6 marks⏱ Suggested time: 11 min
Compare the waterfall model with agile development for building a mobile app for a new start-up whose requirements are not yet clear.
- Question 4(b)Structural6 marks⏱ Suggested time: 11 min
Describe three methods a systems analyst can use to find out how the current system works, giving one advantage of each.
- Question 4(c)Structural8 marks⏱ Suggested time: 14 min
Explain the following types of testing: unit, integration, system, alpha, beta and acceptance testing. Include one sentence on the difference between black-box and white-box testing.
- Question 5(a)Structural6 marks⏱ Suggested time: 11 min
A computer has IP address 192.168.10.37 and subnet mask 255.255.255.0. 1. What is the network address? 2. How many hosts can the subnet have? 3. Explain the difference between an IP address and a MAC address.
- Question 5(b)Structural4 marks⏱ Suggested time: 7 min
Explain the purpose of DNS and DHCP when a laptop joins a school's Wi-Fi and opens a website.
- Question 5(c)Structural4 marks⏱ Suggested time: 7 min
A hospital is considering a private intranet. Give two advantages and two disadvantages.
- Question 5(d)Structural6 marks⏱ Suggested time: 11 min
Describe three threats to a company's network and a countermeasure for each.
