GratuitGCE A LevelStructurée

GCE A Level Computer Science Paper 2 – Ngahtech Mock 2

Examen
Cameroon GCE Board
Année
2026 · Mock 2
Niveau
Upper Sixth
Durée
180 min
points
100

Source: Original Ngahtech mock paper for GCE A Level Computer Science Paper 2. Not an official GCE Board paper.

Composez cette épreuve en mode entraînement ou chronométré : à la fin, vous obtenez votre note et le corrigé complet avec une explication pour chaque 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.

  1. Question 1(a)Structurée4 points⏱ Temps conseillé : 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.

    🤖 Demander au tuteur IA

  2. Question 1(b)Structurée4 points⏱ Temps conseillé : 7 min

    Explain what overflow is in two's complement addition and show that 100 + 50 overflows in 8 bits.

    🤖 Demander au tuteur IA

  3. Question 1(c)Structurée6 points⏱ Temps conseillé : 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.

    🤖 Demander au tuteur IA

  4. Question 1(d)Structurée6 points⏱ Temps conseillé : 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}}

    🤖 Demander au tuteur IA

  5. Question 2(a)Structurée6 points⏱ Temps conseillé : 11 min

    Write an algorithm in pseudocode for a binary search that looks for Target in a sorted array List[1..N] and outputs its position, or "Not found".

    🤖 Demander au tuteur IA

  6. Question 2(b)Structurée4 points⏱ Temps conseillé : 7 min

    Show the contents of the array 6, 2, 9, 4, 1 after each pass of a bubble sort into ascending order.

    🤖 Demander au tuteur IA

  7. Question 2(c)Structurée4 points⏱ Temps conseillé : 7 min

    Compare the efficiency of bubble sort and merge sort for a list of 10 000 student names, using Big-O notation.

    🤖 Demander au tuteur IA

  8. Question 2(d)Structurée6 points⏱ Temps conseillé : 11 min

    A program models bank accounts. Class Account has a private attribute Balance and methods Deposit(Amount) and Withdraw(Amount). Class SavingsAccount adds an attribute Rate and a method AddInterest(). 1. Explain encapsulation, inheritance and polymorphism using these classes. 2. Write the Withdraw method so that the balance can never become negative.

    🤖 Demander au tuteur IA

  9. Question 3(a)Structurée8 points⏱ Temps conseillé : 14 min

    Describe the stages of compilation: lexical analysis, syntax analysis, semantic analysis, code generation and optimisation.

    🤖 Demander au tuteur IA

  10. Question 3(b)Structurée4 points⏱ Temps conseillé : 7 min

    Explain the difference between direct, indirect and indexed addressing, using LDA 100 as an example for each.

    🤖 Demander au tuteur IA

  11. Question 3(c)Structurée4 points⏱ Temps conseillé : 7 min

    State two differences between RISC and CISC processors, and give an example of where each is used.

    🤖 Demander au tuteur IA

  12. Question 3(d)Structurée4 points⏱ Temps conseillé : 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.

    🤖 Demander au tuteur IA

  13. Question 4(a)Structurée6 points⏱ Temps conseillé : 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.

    🤖 Demander au tuteur IA

  14. Question 4(b)Structurée6 points⏱ Temps conseillé : 11 min

    Describe three methods a systems analyst can use to find out how the current system works, giving one advantage of each.

    🤖 Demander au tuteur IA

  15. Question 4(c)Structurée8 points⏱ Temps conseillé : 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.

    🤖 Demander au tuteur IA

  16. Question 5(a)Structurée6 points⏱ Temps conseillé : 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.

    🤖 Demander au tuteur IA

  17. Question 5(b)Structurée4 points⏱ Temps conseillé : 7 min

    Explain the purpose of DNS and DHCP when a laptop joins a school's Wi-Fi and opens a website.

    🤖 Demander au tuteur IA

  18. Question 5(c)Structurée4 points⏱ Temps conseillé : 7 min

    A hospital is considering a private intranet. Give two advantages and two disadvantages.

    🤖 Demander au tuteur IA

  19. Question 5(d)Structurée6 points⏱ Temps conseillé : 11 min

    Describe three threats to a company's network and a countermeasure for each.

    🤖 Demander au tuteur IA