WAEC Past Questions

WAEC Computer Science 2022
Questions & Answers

40 questions · Correct answers highlighted · 40 with explanations

40 Total Questions
2022 Exam Year
40 With Explanations
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 40
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

A hypervisor, also known as a virtual machine monitor (VMM), is software, firmware, or hardware that creates, runs, and manages virtual machines (VMs) by abstracting the underlying physical hardware, allowing multiple operating systems to run on a single host machine simultaneously.

2
Question 2 of 40
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

Microservices architecture decomposes a large application into a collection of small, independent services that communicate over well-defined APIs, each focusing on a specific business capability, enabling easier scaling, deployment, and maintenance compared to monolithic designs.

3
Question 3 of 40
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

CAPTCHA (Completely Automated Public Turing test to tell Computers and Humans Apart) presents challenges like image recognition or distorted text that are easy for humans but difficult for bots, preventing automated abuse such as spam or fake account creation on websites.

4
Question 4 of 40
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

A switch-case statement allows a variable to be tested against a list of values, executing different code blocks based on the match, providing an efficient alternative to multiple if-else statements for handling numerous discrete conditions.

5
Question 5 of 40
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

A DoS attack floods a target system, network, or website with excessive traffic or requests, consuming resources and making it unavailable to legitimate users, often used maliciously to cause downtime or as a smokescreen for other attacks.

6
Question 6 of 40
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

Holographic storage uses laser interference patterns to store data in three-dimensional volumes within a photosensitive material, allowing massive parallel access and high-density storage far beyond traditional 2D optical discs.

7
Question 7 of 40
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

A CDN distributes content across a global network of edge servers, caching data closer to users to reduce latency, improve load times, and handle traffic spikes, enhancing user experience for websites and streaming services.

8
Question 8 of 40
WAEC · Computer Science · 2022

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

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

XML (eXtensible Markup Language) is a flexible markup language used to structure, store, and transport data with custom tags, unlike programming languages like Java, Python, or C# which execute logic and computations.

9
Question 9 of 40
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

A packet sniffer (or analyzer) intercepts and logs network traffic data packets, allowing inspection of headers, payloads, and protocols for troubleshooting, security monitoring, or performance optimization in networks.

10
Question 10 of 40
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

The Network Access layer in TCP/IP (combining OSI's Physical and Data Link layers) handles hardware addressing, physical transmission, and media access, directly corresponding to the OSI Physical layer's bit-level signaling and cabling.

11
Question 11 of 40
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

Genetic algorithms mimic natural evolution through selection, crossover, and mutation to iteratively search for optimal solutions in complex, multi-variable problems like scheduling or design optimization in AI.

12
Question 12 of 40
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

Wearables like smartwatches or fitness trackers are designed to be embedded in or attached to clothing/accessories for seamless, hands-free use, collecting real-time data such as health metrics while remaining portable and unobtrusive.

13
Question 13 of 40
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

Semaphores are synchronization primitives that use counters to manage concurrent access to shared resources, preventing race conditions by signaling processes when resources are available or locked.

14
Question 14 of 40
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

Gamification incorporates game mechanics like points, badges, and leaderboards into educational content to boost learner motivation, engagement, and retention by making abstract or repetitive tasks more interactive and rewarding.

15
Question 15 of 40
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

A gateway translates protocols between dissimilar networks (e.g., LAN to WAN), enabling communication by performing protocol conversion, routing, and sometimes security functions at the network boundary.

16
Question 16 of 40
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

Spear phishing is a targeted phishing variant that crafts personalized emails or messages to specific high-value individuals (e.g., executives) to extract sensitive information, unlike broad phishing or malware like adware/spyware/trojans.

17
Question 17 of 40
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

A profiler instruments code to measure execution time, memory usage, and resource consumption, pinpointing inefficient sections (bottlenecks) for optimization, improving overall application speed and efficiency.

18
Question 18 of 40
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

Clustered file systems distribute data across multiple interconnected nodes for high availability, scalability, and parallel access, allowing shared storage in environments like HPC or cloud computing.

19
Question 19 of 40
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

A honeypot is a decoy system designed to lure attackers, capturing their tactics, tools, and methods for analysis, helping improve defenses without risking real assets.

20
Question 20 of 40
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

Hadoop is an open-source framework for distributed storage and processing of large-scale data sets across clusters using HDFS for storage and MapReduce for parallel computation, ideal for big data analytics.

21
Question 21 of 40
WAEC · Computer Science · 2022

What is the role of a session layer in the OSI model?

A. To manage physical connections
B. To establish and manage communication sessions
C. To route data packets
D. To encrypt data
Explanation

The Session layer (OSI Layer 5) handles setup, coordination, and termination of communication sessions between applications, ensuring dialog control, synchronization, and recovery from disruptions.

22
Question 22 of 40
WAEC · Computer Science · 2022

Which of the following is a feature of a serverless computing model?

A. Requires dedicated servers
B. Automatically manages infrastructure
C. Limited to local networks
D. High hardware maintenance
Explanation

Serverless computing (e.g., AWS Lambda) abstracts server management, automatically scaling and provisioning resources based on demand, allowing developers to focus on code without infrastructure concerns.

23
Question 23 of 40
WAEC · Computer Science · 2022

What is the purpose of a firmware rollback?

A. To increase data speed
B. To revert to a previous software version
C. To enhance graphic quality
D. To optimize network traffic
Explanation

Firmware rollback restores a device's low-level software to a prior stable version if an update introduces bugs or instability, ensuring functionality and data integrity in embedded systems.

24
Question 24 of 40
WAEC · Computer Science · 2022

Which of the following is a benefit of using continuous integration in development?

A. Reduced code quality
B. Frequent code integration and testing
C. Simplified hardware design
D. Lower user engagement
Explanation

Continuous Integration (CI) automates merging code changes into a shared repository with immediate testing, detecting integration errors early, improving code quality, and accelerating release cycles.

25
Question 25 of 40
WAEC · Computer Science · 2022

What is the function of a parity bit in data transmission?

A. To enhance display output
B. To detect errors in data
C. To increase storage size
D. To manage network speed
Explanation

A parity bit adds redundancy to binary data by setting it so the total number of 1s is even (even parity) or odd (odd parity), allowing the receiver to detect single-bit transmission errors.

26
Question 26 of 40
WAEC · Computer Science · 2022

Which of the following is a characteristic of a software-defined network (SDN)?

A. Fixed hardware configuration
B. Centralized control of network traffic
C. Limited to wired connections
D. No automation
Explanation

SDN separates the control plane (centralized software controller) from the data plane (hardware switches), enabling programmable, dynamic network management for better automation and efficiency.

27
Question 27 of 40
WAEC · Computer Science · 2022

What is the role of a coroutine in programming?

A. To manage hardware ports
B. To enable cooperative multitasking
C. To enhance graphic rendering
D. To optimize storage
Explanation

Coroutines allow functions to pause and resume execution cooperatively, yielding control without preemption, facilitating lightweight multitasking in languages like Python or Lua for tasks like generators or async I/O.

28
Question 28 of 40
WAEC · Computer Science · 2022

Which of the following is an example of a raster graphics format?

A. BMP
B. SVG
C. AI
D. EPS
Explanation

BMP (Bitmap) is a raster format storing images as pixel grids, suitable for detailed photos but losing quality when scaled, unlike vector formats like SVG, AI, or EPS which use mathematical paths.

29
Question 29 of 40
WAEC · Computer Science · 2022

What is the purpose of a testbed in software development?

A. To increase network speed
B. To provide a controlled environment for testing
C. To enhance hardware performance
D. To manage user accounts
Explanation

A testbed is an isolated setup with hardware, software, and data mimicking production to safely test new features, integrations, or fixes, identifying issues without affecting live systems.

30
Question 30 of 40
WAEC · Computer Science · 2022

Which of the following is a feature of a mesh network topology?

A. Single point of failure
B. Multiple direct connections between nodes
C. Centralized control
D. Linear structure
Explanation

Mesh topology connects nodes directly to multiple others, providing redundant paths for resilient communication, self-healing, and high throughput, though complex to implement compared to star or bus.

31
Question 31 of 40
WAEC · Computer Science · 2022

What is the function of a watchdog timer in embedded systems?

A. To enhance display quality
B. To reset the system if it fails
C. To increase data storage
D. To optimize internet speed
Explanation

A watchdog timer is a hardware counter that resets the microcontroller if not periodically serviced (e.g., by a heartbeat signal), preventing hangs or crashes in real-time embedded applications.

32
Question 32 of 40
WAEC · Computer Science · 2022

Which of the following is a benefit of using containerization technology?

A. Reduced portability
B. Lightweight and isolated application environments
C. Higher hardware costs
D. Limited scalability
Explanation

Containerization (e.g., Docker) packages applications with dependencies into isolated, lightweight units sharing the host OS kernel, ensuring consistency across environments and efficient resource use.

33
Question 33 of 40
WAEC · Computer Science · 2022

What is the purpose of a nonce in cryptographic systems?

A. To increase data size
B. To prevent replay attacks with a unique number
C. To enhance graphic design
D. To manage software updates
Explanation

A nonce (number used once) is a random or sequential value included in cryptographic protocols to ensure message uniqueness, thwarting replay attacks where intercepted data is resent maliciously.

34
Question 34 of 40
WAEC · Computer Science · 2022

Which of the following is a characteristic of a fog computing system?

A. Centralized data processing
B. Distributed computing near data sources
C. Limited to cloud storage
D. High latency
Explanation

Fog computing extends cloud capabilities to the network edge (e.g., IoT gateways), processing data locally near sources to reduce latency, bandwidth use, and cloud dependency in time-sensitive applications.

35
Question 35 of 40
WAEC · Computer Science · 2022

What is the role of a stub in distributed computing?

A. To manage hardware ports
B. To act as a placeholder for remote procedure calls
C. To enhance network speed
D. To store permanent data
Explanation

In RPC (Remote Procedure Call), a stub on the client marshals arguments and invokes the remote service transparently, while the server stub unmarshals and executes, abstracting network details for distributed programming.

36
Question 36 of 40
WAEC · Computer Science · 2022

Which of the following is an example of a time-sharing operating system?

A. MS-DOS
B. Unix
C. Windows XP
D. BIOS
Explanation

Unix is a multi-user, time-sharing OS that allocates CPU time slices to multiple processes or users via scheduling, enabling concurrent interactive sessions, unlike single-user MS-DOS or firmware BIOS.

37
Question 37 of 40
WAEC · Computer Science · 2022

What is the purpose of a data lake in data management?

A. To enhance graphic design
B. To store raw, unstructured data for analysis
C. To manage network traffic
D. To optimize hardware performance
Explanation

A data lake is a centralized repository for storing vast amounts of raw, unstructured, semi-structured, or structured data in native format until needed, supporting flexible big data analytics without predefined schemas.

38
Question 38 of 40
WAEC · Computer Science · 2022

Which of the following is a feature of a zero-trust security model?

A. Unrestricted access
B. Verification of every user and device
C. Simplified network design
D. No encryption
Explanation

Zero-trust assumes no implicit trust, requiring continuous verification of users, devices, and contexts via multi-factor authentication, micro-segmentation, and least privilege to mitigate insider and external threats.

39
Question 39 of 40
WAEC · Computer Science · 2022

What is the function of a bus controller in a computer system?

A. To enhance display output
B. To coordinate data transfer on the bus
C. To increase storage capacity
D. To optimize network speed
Explanation

The bus controller manages arbitration, timing, and protocol enforcement on the system bus, ensuring orderly data/address/control signal transfers between CPU, memory, and peripherals.

40
Question 40 of 40
WAEC · Computer Science · 2022

Which of the following is a benefit of using 6G technology in communication?

A. Reduced data security
B. Ultra-high-speed and low-latency connections
C. Limited device support
D. Higher power consumption
Explanation

6G promises terabit-per-second speeds, sub-millisecond latency, and massive connectivity for applications like holographic communication and AI-driven networks, building on 5G with advanced mmWave, THz, and AI integration.

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