JAMB Past Questions

JAMB Computer Studies 2018
Questions & Answers

40 questions · Correct answers highlighted · 40 with explanations

40 Total Questions
2018 Exam Year
40 With Explanations
Ready to test yourself? Take the full JAMB Computer Studies 2018 CBT quiz — timed, just like the real exam.
Start Quiz
1
Question 1 of 40
JAMB · Computer Studies · 2018

What is the primary role of the accumulator in a CPU?

A. To store the address of the next instruction
B. To hold intermediate arithmetic and logic results
C. To manage memory allocation
D. To control input/output operations
Explanation

1) Distractor check: Candidates might confuse the accumulator with memory management, input/output control, or instruction addressing. 2) Reasoning to the answer: The accumulator functions as a temporary storage register specifically designed to hold intermediate arithmetic and logic results, bypassing constant memory roundtrips to speed up execution. 3) Common mistake: Confusing data processing registers with memory address pointers.

2
Question 2 of 40
JAMB · Computer Studies · 2018

Which data structure is best suited for implementing a priority queue?

A. Linked List
B. Binary Heap
C. Stack
D. Array
Explanation

1) Distractor check: Students may choose a Linked List, Stack, or Array without considering efficiency for dynamic prioritization tasks. 2) Reasoning to the answer: A binary heap provides optimal logarithmic time bounds for insertions and deletions while keeping the highest priority item accessible at the root, making it the ideal underlying structure for a priority queue. 3) Common mistake: Assuming basic linear structures like arrays or linked lists match heap efficiency for priority updates.

3
Question 3 of 40
JAMB · Computer Studies · 2018

What does PROM stand for in memory technology?

A. Programmable Read-Only Memory
B. Primary Runtime Operating Memory
C. Protected Random Output Module
D. Persistent Read-Only Memory
Explanation

1) Distractor check: Test-takers might guess runtime memory or output modules by misinterpreting the acronym components. 2) Reasoning to the answer: PROM stands for Programmable Read-Only Memory, describing a non-volatile chip that can be written to once post-manufacturing by a user device. 3) Common mistake: Confusing programmable chips with random access or standard runtime memory.

4
Question 4 of 40
JAMB · Computer Studies · 2018

Which programming language is commonly used for blockchain development?

A. Solidity
B. Python
C. PHP
D. Ruby
Explanation

1) Distractor check: A student might select general-purpose languages like Python, PHP, or Ruby instead of a domain-specific option. 2) Reasoning to the answer: Smart contracts on decentralized networks require a specialized syntax, which is why Solidity is the primary language utilized for blockchain development. 3) Common mistake: Choosing general web languages over blockchain-specific languages.

5
Question 5 of 40
JAMB · Computer Studies · 2018

What is the decimal equivalent of the binary number 11011?

A. 25
B. 26
C. 27
D. 28
Explanation

1) Distractor check: Candidates might miscalculate powers of two resulting in adjacent values like 25, 26, or 28. 2) Reasoning to the answer: Evaluating the binary digits positionally yields 16 + 8 + 0 + 2 + 1, which sums up to a decimal value of 27. 3) Common mistake: Making arithmetic addition errors when summing the powers of two.

6
Question 6 of 40
JAMB · Computer Studies · 2018

Which of the following is a time-series NoSQL database?

A. InfluxDB
B. MongoDB
C. Cassandra
D. MySQL
Explanation

1) Distractor check: Learners might pick MongoDB, Cassandra, or MySQL by ignoring the specialized temporal requirements of the query type. 2) Reasoning to the answer: InfluxDB is explicitly architected as a time-series NoSQL database to handle high-frequency timestamped data streams like IoT sensors and metrics. 3) Common mistake: Confusing document or relational databases with specialized time-series engines.

7
Question 7 of 40
JAMB · Computer Studies · 2018

What does HTML stand for?

A. HyperText Markup Language
B. High-Level Text Management Language
C. Hosted Terminal Markup Logic
D. Hyperlink Text Module Language
Explanation

1) Distractor check: Students might pick distractor expansions involving text management, terminal logic, or module language. 2) Reasoning to the answer: The acronym HTML stands for HyperText Markup Language, reflecting its core function of marking up and structuring content for web browsers. 3) Common mistake: Forgetting the exact wording for markup versus management terminology.

8
Question 8 of 40
JAMB · Computer Studies · 2018

Which algorithm is used for finding strongly connected components in a graph?

A. Tarjan’s Algorithm
B. Dijkstra’s Algorithm
C. Quick Sort
D. Linear Search
Explanation

1) Distractor check: A candidate might select Dijkstra's Algorithm for shortest paths, Quick Sort for ordering, or Linear Search for looking up items. 2) Reasoning to the answer: Tarjan’s Algorithm uses a depth-first search strategy alongside a tracking stack to isolate strongly connected components in directed graphs. 3) Common mistake: Mixing up pathfinding algorithms with component-finding algorithms.

9
Question 9 of 40
JAMB · Computer Studies · 2018

What is the average-case time complexity of a binary search algorithm?

A. O(1)
B. O(log n)
C. O(n)
D. O(n^2)
Explanation

1) Distractor check: Test-takers might erroneously choose O(1) constant time, O(n) linear time, or O(n^2) quadratic time. 2) Reasoning to the answer: By repeatedly dividing the sorted search range in half during each check, binary search achieves an average-case time complexity of O(log n). 3) Common mistake: Confusing the logarithmic search complexity with linear scanning time.

10
Question 10 of 40
JAMB · Computer Studies · 2018

Which of the following is an example of a storage device?

A. Monitor
B. External Hard Drive
C. Mouse
D. Keyboard
Explanation

1) Distractor check: Students could pick monitors, mice, or keyboards, which function as peripheral input and output devices rather than storage media. 2) Reasoning to the answer: An external hard drive serves as a high-capacity unit designed specifically for saving and retaining data persistently outside the main computer housing. 3) Common mistake: Confusing input/output peripherals with persistent storage hardware.

11
Question 11 of 40
JAMB · Computer Studies · 2018

What is the purpose of a file system in an operating system?

A. To execute programs
B. To organize and store data on storage devices
C. To manage network protocols
D. To compile code
Explanation

1) Distractor check: Candidates might confuse the file system with program execution, network management, or code compilation tasks. 2) Reasoning to the answer: The file system is responsible for organizing, naming, structuring, and retrieving data files on physical storage media like hard drives and SSDs. 3) Common mistake: Confusing storage organization systems with process execution managers.

12
Question 12 of 40
JAMB · Computer Studies · 2018

Which protocol is used for streaming media over the internet?

A. RTSP
B. FTP
C. SMTP
D. DNS
Explanation

Students might mistakenly choose FTP, SMTP, or DNS because these are also well-known networking protocols, but those options handle file transfers, emails, and domain resolution rather than media streaming. By looking at the core function of managing play, pause, or stop commands for media over the internet, RTSP (Real-Time Streaming Protocol) is identified as the correct option. Common mistake: Confusing various network protocols and assuming any internet protocol can handle video or audio streaming.

13
Question 13 of 40
JAMB · Computer Studies · 2018

What is the primary function of a voltage regulator in a computer?

A. To store data
B. To stabilize power supply to components
C. To increase processing speed
D. To manage network traffic
Explanation

A student might incorrectly select options like increasing processing speed or storing data because computer performance is heavily discussed in terms of CPUs and storage drives. However, a voltage regulator specifically maintains consistent voltage levels to protect sensitive hardware components from damaging power fluctuations, unlike data storage or speed enhancement tasks. Common mistake: Confusing power management hardware with processing or storage capabilities.

14
Question 14 of 40
JAMB · Computer Studies · 2018

Which of the following is a scripting language used for automation?

A. C++
B. Bash
C. Java
D. C#
Explanation

An examinee might be tempted to choose C++, Java, or C# because they are widely recognized programming languages used in software development. However, those are compiled languages, whereas Bash scripts are interpreted and specifically designed for quick Unix-like system automation tasks such as file manipulation. Common mistake: Failing to distinguish between compiled software development languages and interpreted scripting languages built for administration.

15
Question 15 of 40
JAMB · Computer Studies · 2018

What does UPS stand for in computer hardware?

A. Uninterruptible Power Supply
B. Universal Processing System
C. Unified Peripheral Service
D. Ultra Performance Storage
Explanation

A test-taker could mistakenly select Universal Processing System or Ultra Performance Storage because they sound like plausible high-end computer hardware terms. The correct choice is Uninterruptible Power Supply, which preserves data and protects hardware by supplying backup power during outages. Common mistake: Guessing a hardware acronym based on generic tech buzzwords instead of its actual power-management definition.

16
Question 16 of 40
JAMB · Computer Studies · 2018

Which sorting algorithm divides the input into equal parts and recursively sorts them?

A. Bubble Sort
B. Merge Sort
C. Selection Sort
D. Insertion Sort
Explanation

Students might mistakenly lean toward Bubble Sort, Selection Sort, or Insertion Sort because all of them are standard sorting algorithms taught in computer science. Unlike those options, which operate iteratively, Merge Sort relies on a divide-and-conquer approach to achieve an O(n log n) complexity by dividing the input into equal parts, recursively sorting them, and merging the halves. Common mistake: Assuming all sorting algorithms share the same iterative execution strategy.

17
Question 17 of 40
JAMB · Computer Studies · 2018

What is the purpose of a subnet in networking?

A. To encrypt data
B. To divide a network into smaller segments
C. To increase bandwidth
D. To resolve domain names
Explanation

An examinee might mistakenly choose to encrypt data or increase bandwidth because subnets are frequently discussed in the context of network optimization and security. A subnet actually divides a larger network into smaller, manageable segments to allow efficient IP address allocation, better organization, and traffic management. Common mistake: Associating network segmentation with data encryption or raw bandwidth enhancements.

18
Question 18 of 40
JAMB · Computer Studies · 2018

Which of the following is a volatile memory type?

A. SSD
B. ROM
C. DRAM
D. Flash Memory
Explanation

A student might incorrectly pick SSD or Flash Memory because they are common types of computer memory and storage. However, SSD, ROM, and flash memory are non-volatile and retain data without power, whereas DRAM (Dynamic Random Access Memory) requires constant refreshing and loses its contents when power is turned off. Common mistake: Overlooking the volatile nature of RAM compared to persistent storage drives.

19
Question 19 of 40
JAMB · Computer Studies · 2018

What does JSON stand for?

A. JavaScript Object Notation
B. Joint System Operations Network
C. Java Source Organizer
D. Justified Output Notation
Explanation

A test-taker could mistakenly choose options like Java Source Organizer or Joint System Operations Network because they incorporate familiar tech terminology. JSON stands for JavaScript Object Notation, providing a lightweight, readable format for structured data interchange in web applications and APIs. Common mistake: Assuming an acronym relates to Java development tools instead of its actual data interchange format name.

20
Question 20 of 40
JAMB · Computer Studies · 2018

Which of the following is an example of an infrastructure-as-a-service (IaaS) provider?

A. Google Docs
B. Microsoft Azure
C. Salesforce
D. Slack
Explanation

Students might mistakenly pick Google Docs, Salesforce, or Slack because they are very popular cloud-based platforms used daily. Those alternatives are SaaS (Software-as-a-Service) applications, whereas Microsoft Azure delivers raw virtual machines, storage, and networking infrastructure as an IaaS provider. Common mistake: Confusing end-user software applications with underlying cloud infrastructure providers.

21
Question 21 of 40
JAMB · Computer Studies · 2018

What is the purpose of a function in programming?

A. To store data
B. To perform a specific task and promote reusability
C. To execute loops
D. To manage memory
Explanation

An examinee might mistakenly choose storing data or managing memory because functions interact heavily with variables and data execution. A function's primary purpose is to encapsulate code to perform a specific task, promoting modularity and reusability to avoid code duplication. Common mistake: Confusing a code block designed for reusability with data structures or memory management routines.

22
Question 22 of 40
JAMB · Computer Studies · 2018

Which of the following is NOT a component of a computer system?

A. CPU
B. RAM
C. Firewall
D. Motherboard
Explanation

A student might mistakenly select CPU, RAM, or Motherboard because they are universally recognized parts found inside a computer. Unlike those essential hardware components required for processing, memory, and connectivity, a firewall is a security tool designed to protect networks rather than serve as a physical system component. Common mistake: Mistaking network and software security tools for core physical hardware components.

23
Question 23 of 40
JAMB · Computer Studies · 2018

What is the role of a web crawler in search engines?

A. To design web pages
B. To index web content
C. To store user data
D. To compile code
Explanation

A test-taker might incorrectly pick storing user data or designing web pages because they relate to general website creation and databases. A web crawler's actual role is to systematically browse the internet to index web content, gathering page text and links so search engines can quickly retrieve relevant results. Common mistake: Confusing the backend indexing function of search engines with front-end web design or data storage.

24
Question 24 of 40
JAMB · Computer Studies · 2018

Which of the following is a version control system?

A. Git
B. Docker
C. Kubernetes
D. Ansible
Explanation

An examinee might mistakenly choose Docker, Kubernetes, or Ansible because they are all essential tools frequently used alongside modern codebases and developer workflows. However, Docker handles containers, Kubernetes provides orchestration, and Ansible automates tasks, leaving Git as the correct version control system for tracking code changes and history management. Common mistake: Confusing containerization or orchestration tools with source code version control systems.

25
Question 25 of 40
JAMB · Computer Studies · 2018

What is the hexadecimal equivalent of the binary number 100100?

A. 22
B. 24
C. 26
D. 28
Explanation

A student might mistakenly pick 22, 26, or 28 due to calculation errors while converting bases. Converting the binary number 100100 to decimal gives 32 + 4 = 36, and converting 36 into hexadecimal yields 2 times 16 plus 4, resulting in 24. Common mistake: Making arithmetic errors during binary-to-decimal or decimal-to-hexadecimal conversions.

26
Question 26 of 40
JAMB · Computer Studies · 2018

Which of the following is a type of keylogging attack?

A. Hardware Keylogging
B. SQL Injection
C. Cross-Site Scripting
D. Packet Sniffing
Explanation

A test-taker might mistakenly select SQL Injection, Cross-Site Scripting, or Packet Sniffing because they are all prominent cyberattack types. Those alternatives are software-based attacks targeting databases, web applications, or network traffic, whereas hardware keylogging relies on physical devices to directly capture user keystrokes. Common mistake: Failing to distinguish between physical hardware surveillance attacks and software-based network or database exploits.

27
Question 27 of 40
JAMB · Computer Studies · 2018

What does SAN stand for in networking?

A. Storage Area Network
B. System Access Node
C. Secure Application Network
D. Standardized Access Network
Explanation

An examinee might mistakenly choose System Access Node or Secure Application Network because they sound like standard enterprise IT infrastructure terminology. SAN stands for Storage Area Network, designating a high-speed network that links storage devices directly to servers for efficient data access. Common mistake: Inventing or selecting plausible-sounding networking acronyms instead of the recognized storage architecture term.

28
Question 28 of 40
JAMB · Computer Studies · 2018

Which data structure is used for implementing a disjoint-set (union-find)?

A. Tree
B. Queue
C. Stack
D. Hash Table
Explanation

A student might incorrectly pick a Queue, Stack, or Hash Table because they are standard data structures taught in computer science courses. A disjoint-set utilizes a tree-based structure to efficiently manage and merge sets with near-constant time complexity via path compression, making the other linear or key-value structures unsuitable. Common mistake: Applying linear or basic collections to problems requiring hierarchical set-union operations.

29
Question 29 of 40
JAMB · Computer Studies · 2018

What is the purpose of a 'switch' statement in programming?

A. To declare variables
B. To select one of many code blocks to execute
C. To handle files
D. To sort arrays
Explanation

An examinee might mistakenly choose to declare variables or handle files because switch statements are a fundamental part of programming syntax. A switch statement evaluates an expression to select and execute one of many code blocks based on matching cases, replacing complex chains of if-else statements. Common mistake: Confusing control flow branching logic with variable declaration or input-output operations.

30
Question 30 of 40
JAMB · Computer Studies · 2018

Which of the following is a low-level programming language?

A. Python
B. Assembly
C. Java
D. JavaScript
Explanation

A test-taker might mistakenly select Python, Java, or JavaScript because they are widely taught, highly popular programming languages. Those options are high-level languages featuring rich abstractions for easier development, whereas Assembly is a low-level language tied directly to machine code for direct hardware control. Common mistake: Confusing high-level application languages with low-level languages tied to machine architecture.

31
Question 31 of 40
JAMB · Computer Studies · 2018

What is the purpose of a gateway in a network?

A. To store data packets
B. To connect networks with different protocols
C. To compress files
D. To manage email servers
Explanation

A student might incorrectly select compressing files or storing data packets because gateways operate in network environments where data moves constantly. A gateway specifically connects networks using different protocols—such as linking a local network to the internet—by translating those protocols so communication can occur. Common mistake: Confusing protocol translation devices with file compression utilities or packet storage buffers.

32
Question 32 of 40
JAMB · Computer Studies · 2018

Which of the following is a lossless audio format?

A. MP3
B. FLAC
C. AAC
D. WMA
Explanation

An examinee might mistakenly choose MP3, AAC, or WMA because they are extremely common audio file formats used across consumer devices. Those alternatives are lossy formats that sacrifice audio quality to achieve smaller file sizes, whereas FLAC preserves all original audio data for high-fidelity playback. Common mistake: Assuming all popular compressed audio formats retain full, lossless audio quality.

33
Question 33 of 40
JAMB · Computer Studies · 2018

What is the role of a semantic analyzer in a compiler?

A. To check code for logical consistency
B. To generate machine code
C. To execute instructions
D. To optimize runtime
Explanation

A student might mistakenly choose to generate machine code or optimize runtime because compilers perform multiple sequential phases during execution. A semantic analyzer specifically checks the logical consistency of code, ensuring type compatibility and valid variable usage during compilation rather than executing instructions or handling final machine code generation. Common mistake: Blurring the boundaries between syntax/semantic checking phases and code generation or optimization phases.

34
Question 34 of 40
JAMB · Computer Studies · 2018

Which of the following is a feature of a red-black tree?

A. Fixed height
B. Self-balancing with color properties
C. Random node arrangement
D. Linear structure
Explanation

A test-taker might incorrectly select fixed height or linear structures because tree topologies are often visualized in rigid ways. A red-black tree is a self-balancing binary search tree that uses color properties (red or black) along with rotations to maintain an efficient O(log n) height. Common mistake: Confusing self-balancing search trees with static data structures or random node layouts.

35
Question 35 of 40
JAMB · Computer Studies · 2018

What does FTP stand for?

A. File Transfer Protocol
B. Fast Transmission Process
C. Flexible Transport Protocol
D. File Tracking Program
Explanation

An examinee might mistakenly select Fast Transmission Process or File Tracking Program because they use logical networking vocabulary. FTP stands for File Transfer Protocol, designating the standard protocol used for moving files safely between computers over a network. Common mistake: Guessing a descriptive title for file movement instead of the official protocol name.

36
Question 36 of 40
JAMB · Computer Studies · 2018

Which of the following is a generative AI model framework?

A. PyTorch
B. Pandas
C. NumPy
D. SciPy
Explanation

A student might mistakenly pick Pandas, NumPy, or SciPy because they are essential Python libraries utilized heavily in data science projects. Those alternatives focus on data analysis and scientific computing, whereas PyTorch provides the framework required for building neural networks and generative AI models. Common mistake: Confusing general data science calculation libraries with deep learning AI frameworks.

37
Question 37 of 40
JAMB · Computer Studies · 2018

What is the purpose of a memory bus in computer architecture?

A. To execute instructions
B. To transfer data between CPU and memory
C. To manage interrupts
D. To cool the system
Explanation

Students might mistakenly choose option A or C because executing instructions and managing interrupts are active tasks performed by the computer, but these are handled by other specific components rather than the communication pathway. By tracing the route that allows fast communication critical for system performance, we see that data and addresses move directly between the CPU and memory, pointing specifically to option B. Common mistake: confusing the pathway for data transfer with the actual processing units that execute instructions.

38
Question 38 of 40
JAMB · Computer Studies · 2018

Which of the following is a proprietary database management system?

A. PostgreSQL
B. Oracle
C. MariaDB
D. MongoDB
Explanation

An uninitiated student might select PostgreSQL, MariaDB, or MongoDB (options A, C, or D) thinking they are commercial systems due to their heavy usage in enterprise environments. However, looking at licensing requirements separates them, as those three are open-source platforms. Oracle stands apart because it is a proprietary database management system requiring licensing. Common mistake: assuming all widely used enterprise databases are proprietary.

39
Question 39 of 40
JAMB · Computer Studies · 2018

What is the purpose of the ARP protocol in networking?

A. To transfer files
B. To map IP addresses to MAC addresses
C. To encrypt data
D. To stream media
Explanation

One might wrongly select option C or A because encryption and file transfers are common network operations handled by various protocols. To find the correct function, we look at what is essential for routing data within a network, which requires translating network layer identifiers to hardware layer identifiers. This specific address mapping identifies option B as the correct purpose. Common mistake: confusing protocol layers and assuming network layer address resolution handles application tasks like file transfers.

40
Question 40 of 40
JAMB · Computer Studies · 2018

Which of the following is a benefit of using modular programming?

A. Increased hardware compatibility
B. Improved code maintainability
C. Reduced compilation time
D. Enhanced graphical output
Explanation

A student might incorrectly choose option A or C assuming that breaking down code affects hardware or compilation speeds. By analyzing how software architecture is structured, dividing code into independent modules primarily aids in reusability and debugging, which directly improves code maintainability. This makes option B the primary benefit among the choices. Common mistake: assuming code structuring directly alters low-level compilation time or hardware compatibility.

Now practice in exam mode

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

Start JAMB Computer Studies 2018 Quiz
Back to 2018 Start Page