WAEC Past Questions

WAEC Computer Science 2022
Questions & Answers

20 questions · Correct answers highlighted · 20 with explanations

Explanations reviewed August 2026

Covering the 2022 WAEC syllabus for Computer Science, this exam page focuses on system virtualization, network security, and software optimization techniques. Prominent topics appearing throughout the questions include operating system management constructs like semaphores, various network topologies and models, and specialized security threats such as denial-of-service attacks. The questions are designed to test both theoretical knowledge and practical applications in modern IT environments. Make sure to analyze the structural role of each networking and virtualization component as you review your answers for long-term retention.

20 Total Questions
2022 Exam Year
20 With Explanations

Topics in this paper

Computer Networks (8) Software Development (6) Computer Security (6) Operating Systems (4) Programming Languages (3) Hardware Components (3) Data Storage (2) Internet and Web (2) Databases and Spreadsheets (2) Digital Data Representation (2) Artificial Intelligence (1) Application Software (1)
Ready to test yourself? Take the full WAEC Computer Science 2022 CBT quiz — timed, just like the real exam.
Start Quiz
1
Question 1 of 20
WAEC · Computer Science · 2022

What is the primary function of a hypervisor in virtualization?

A. To manage network traffic
B. To create and manage virtual machines
C. To enhance graphic rendering
D. To store permanent data
Explanation

1) Distractor check: A student might mistakenly choose to manage network traffic, confusing virtualization software with network routers or switches. 2) Reasoning to the answer: Underlying physical hardware is abstracted by this software, firmware, or hardware monitor, allowing multiple operating systems to operate concurrently on a single host by creating and running virtual machines. Common mistake: Confusing hypervisors with network management tools.

2
Question 2 of 20
WAEC · Computer Science · 2022

Which of the following is a key feature of a microservices architecture?

A. Single large application
B. Independent, small services
C. Centralized data storage
D. Limited scalability
Explanation

1) Distractor check: A student might select a single large application, which describes a monolithic architecture rather than a decentralized one. 2) Reasoning to the answer: Large applications are broken down into small, independent services that communicate via well-defined APIs, with each service dedicated to a distinct business capability to simplify deployment and scaling. Common mistake: Confusing microservices with monolithic software design.

3
Question 3 of 20
WAEC · Computer Science · 2022

What is the purpose of a CAPTCHA in online systems?

A. To increase data speed
B. To verify that a user is not a bot
C. To enhance hardware performance
D. To manage user accounts
Explanation

1) Distractor check: A student might select to enhance hardware performance, confusing security verification tools with system optimization utilities. 2) Reasoning to the answer: Visual puzzles or distorted text are presented that are simple for humans to solve but difficult for automated scripts, thereby blocking spam and fake account creation. Common mistake: Assuming security challenges are meant to speed up processing.

4
Question 4 of 20
WAEC · Computer Science · 2022

Which programming construct is used to handle multiple conditions in a program?

A. Loop
B. Switch case
C. Array
D. Function
Explanation

1) Distractor check: A student might choose a loop, which is designed for repetition rather than conditional branching. 2) Reasoning to the answer: Multiple discrete conditions are managed efficiently by testing a single variable against a list of values and executing corresponding code blocks, serving as a clean alternative to lengthy if-else chains. Common mistake: Using loops instead of conditional constructs to check multiple values.

5
Question 5 of 20
WAEC · Computer Science · 2022

What is the role of a denial-of-service (DoS) attack in cybersecurity?

A. To improve network performance
B. To overwhelm a system and disrupt services
C. To encrypt user data
D. To enhance software updates
Explanation

1) Distractor check: A student might select to encrypt user data, confusing a malicious attack vector with privacy-enhancing security software. 2) Reasoning to the answer: Excessive traffic and requests flood a targeted system or network, depleting its resources and rendering it inaccessible to legitimate users, often deployed for downtime or as a distraction. Common mistake: Confusing denial-of-service disruptions with data encryption practices.

6
Question 6 of 20
WAEC · Computer Science · 2022

Which of the following is a characteristic of a holographic storage system?

A. Uses magnetic tapes
B. Stores data in three dimensions
C. Limited to 2D data
D. Requires constant power
Explanation

1) Distractor check: A student might choose uses magnetic tapes, confusing advanced optical techniques with older sequential storage media. 2) Reasoning to the answer: Photosensitive materials capture laser interference patterns to record data in three dimensions, enabling massive parallel access and high-density capacity far beyond standard 2D discs. Common mistake: Assuming high-density systems rely on traditional two-dimensional recording.

7
Question 7 of 20
WAEC · Computer Science · 2022

What is the primary benefit of using a content delivery network (CDN)?

A. Reduced data security
B. Faster delivery of web content globally
C. Increased hardware costs
D. Simplified coding
Explanation

1) Distractor check: A student might select reduced data security or simplified coding, but neither of those relates to content distribution infrastructure. 2) Reasoning to the answer: Edge servers cache data around the world, bringing content closer to end users to cut down latency, manage traffic surges, and improve website load times. Common mistake: Assuming infrastructure networks are primarily built for code simplification.

8
Question 8 of 20
WAEC · Computer Science · 2022

Which of the following is an example of a markup language?

A. Java
B. XML
C. Python
D. C#
Explanation

1) Distractor check: A student might select Java or Python, but those are general-purpose programming languages rather than formatting tools. 2) Reasoning to the answer: Custom tags are utilized to structure, store, and transport data flexibly, setting it apart from programming languages that execute logic and run computations. Common mistake: Confusing programming languages with markup languages.

9
Question 9 of 20
WAEC · Computer Science · 2022

What is the function of a packet sniffer in network analysis?

A. To enhance graphic design
B. To capture and analyze network packets
C. To increase storage capacity
D. To manage user interfaces
Explanation

Students might mistakenly choose option D because they could confuse network traffic monitoring with administrative interface tasks. A packet sniffer operates by intercepting and logging data packets traveling across a network. This capability allows administrators to inspect protocol details, message payloads, and packet headers for tasks such as performance optimization, security monitoring, and troubleshooting. Common mistake: Confusing packet inspection tools with network management or user interface administration.

10
Question 10 of 20
WAEC · Computer Science · 2022

Which layer of the TCP/IP model corresponds to the physical layer of the OSI model?

A. Application layer
B. Network access layer
C. Transport layer
D. Internet layer
Explanation

Students might select option A or C by confusing the layered architectures of the OSI and TCP/IP models. The Network Access layer combines the physical and data link layers of the OSI model, directly corresponding to the physical layer's responsibilities of bit-level signaling and cabling. It handles physical transmission, hardware addressing, and media access. Common mistake: Mixing up the TCP/IP layers with the higher levels of the OSI model architecture

11
Question 11 of 20
WAEC · Computer Science · 2022

What is the purpose of a genetic algorithm in artificial intelligence?

A. To optimize solutions using evolutionary principles
B. To manage database queries
C. To enhance monitor resolution
D. To increase network speed
Explanation

Students could erroneously pick option B by associating the word algorithm with database operations or data queries. A genetic algorithm functions in artificial intelligence by mimicking natural evolution to iteratively search for optimal solutions in complex, multi-variable problems, utilizing selection, crossover, and mutation for tasks like scheduling or design optimization. Common mistake: Assuming all algorithmic tools in artificial intelligence relate to data storage or database management

12
Question 12 of 20
WAEC · Computer Science · 2022

Which of the following is a feature of a wearable computing device?

A. Large desktop size
B. Integration into clothing or accessories
C. Requires a power plant
D. Limited to static data
Explanation

An incorrect choice like option A might be selected because users sometimes confuse portable tech with bulky desktop equipment. A wearable computing device is specifically engineered to be embedded in or attached to clothing and accessories for seamless, hands-free use. These devices remain unobtrusive and portable while collecting real-time health metrics and other data. Common mistake: Forgetting that portability and integration into garments are core characteristics of wearables

13
Question 13 of 20
WAEC · Computer Science · 2022

What is the role of a semaphore in operating systems?

A. To manage graphic output
B. To control access to shared resources
C. To enhance data storage
D. To optimize internet speed
Explanation

Students might select option A by mistakenly linking system synchronization tools with graphical user interface rendering. A semaphore acts as a synchronization primitive utilizing internal counters to manage concurrent access to shared resources. By signaling processes when resources are locked or available, it successfully prevents race conditions. Common mistake: Confusing process synchronization primitives with graphic output management

14
Question 14 of 20
WAEC · Computer Science · 2022

Which of the following is a benefit of using a gamification approach in learning?

A. Reduced student engagement
B. Increased motivation through game elements
C. Simplified hardware design
D. Lower software costs
Explanation

A student might incorrectly choose option D by assuming that educational methods directly impact software pricing structures. Gamification incorporates engaging game mechanics like leaderboards, badges, and points into educational content. This approach boosts learner motivation, retention, and overall engagement by transforming repetitive or abstract tasks into interactive and rewarding experiences. Common mistake: Overlooking the psychological impact of game elements on learner motivation and engagement

15
Question 15 of 20
WAEC · Computer Science · 2022

What is the function of a gateway in a network?

A. To store user data
B. To connect different network types
C. To enhance display quality
D. To manage software licenses
Explanation

Students may mistakenly select option A because they confuse network boundary translation with data warehousing or storage functions. A gateway serves to connect different network types by translating protocols between dissimilar environments, such as a LAN and a WAN. It enables communication by performing routing, protocol conversion, and sometimes security functions at the network boundary. Common mistake: Confusing protocol translation across networks with local data storage

16
Question 16 of 20
WAEC · Computer Science · 2022

Which of the following is a type of phishing attack targeting high-profile individuals?

A. Spear phishing
B. Adware
C. Spyware
D. Trojan
Explanation

An incorrect choice like option B, C, or D might be made if a student fails to distinguish targeted social engineering from general malware payloads. Spear phishing is a specialized variant that crafts personalized messages or emails aimed specifically at high-value individuals, such as corporate executives, in order to extract sensitive information. Common mistake: Confusing targeted social engineering attacks against high-profile individuals with generic malware like adware, spyware, or trojans

17
Question 17 of 20
WAEC · Computer Science · 2022

What is the purpose of a profiler in software optimization?

A. To design user interfaces
B. To analyze program performance and identify bottlenecks
C. To increase network traffic
D. To manage hardware ports
Explanation

Students might mistakenly choose option D by confusing performance instrumentation with hardware port management. A profiler works during software optimization by instrumenting code to measure resource consumption, memory usage, and execution time. This process pinpoints inefficient sections known as bottlenecks, ultimately improving overall application efficiency and speed. Common mistake: Confusing software performance analysis tools with hardware device management

18
Question 18 of 20
WAEC · Computer Science · 2022

Which of the following is a characteristic of a clustered file system?

A. Single server storage
B. Data distributed across multiple nodes
C. Limited to local access
D. No redundancy
Explanation

A student could mistakenly pick option A by assuming that file systems always rely on a single localized host. A clustered file system distributes data across multiple interconnected nodes to provide parallel access, high availability, and scalability, making it ideal for environments like cloud computing or high-performance computing (HPC). Common mistake: Assuming distributed storage architectures operate on single-server setups

19
Question 19 of 20
WAEC · Computer Science · 2022

What is the purpose of a honeypot in network security?

A. To enhance data processing
B. To attract and study cyber attackers
C. To increase storage capacity
D. To manage user permissions
Explanation

Students might choose option C by confusing decoy security systems with storage expansion hardware. A honeypot is deployed as a decoy system specifically designed to lure attackers. By capturing their methods, tools, and tactics for subsequent analysis, it helps improve overall security defenses without risking real organizational assets. Common mistake: Confusing cyber decoy mechanisms with data storage capacity upgrades

20
Question 20 of 20
WAEC · Computer Science · 2022

Which of the following is an example of a big data processing tool?

A. Microsoft Word
B. Hadoop
C. Notepad
D. Paint
Explanation

An incorrect option such as A, C, or D might be chosen if a student mistakes standard desktop productivity applications or basic drawing tools for data processing infrastructure. Hadoop serves as an open-source framework for the distributed processing and storage of large-scale data sets across clusters, utilizing MapReduce for parallel computation and HDFS for storage to enable big data analytics. Common mistake: Confusing big data processing frameworks with standard desktop productivity or graphics software

Now practice in exam mode

You've studied the answers — now test yourself under real exam conditions with the timer running.

Start WAEC Computer Science 2022 Quiz
Back to 2022 Start Page
Offline App

Study WAEC Computer Science offline — no data needed

Get the WAEC app for Computer Science and every other subject — practice anywhere, even with no internet connection.

Download the App Free to install · One-time unlock for full access