What is the primary function of a computer's fetch-decode-execute cycle?
The fetch-decode-execute cycle is the process by which the CPU retrieves an instruction from memory, decodes it, and executes it, enabling program execution.
Which data structure is most suitable for implementing a spell checker?
A trie is ideal for a spell checker as it efficiently stores and retrieves strings, enabling fast prefix-based word lookups.
What does CMOS stand for in computer hardware?
CMOS stands for Complementary Metal-Oxide Semiconductor, a technology used in chips like those storing BIOS settings.
Which programming language is known for its use in scientific computing?
MATLAB is widely used in scientific computing for numerical analysis, simulations, and data visualization.
What is the decimal equivalent of the hexadecimal number 2F?
Hexadecimal 2F is 2*16 + 15 = 32 + 15 = 47 in decimal.
Which of the following is a document-oriented NoSQL database?
CouchDB is a document-oriented NoSQL database, storing data as JSON documents, unlike Cassandra, HBase, or MySQL.
What does HTTP stand for?
HTTP stands for HyperText Transfer Protocol, used for transferring web content between clients and servers.
Which algorithm is used for finding the shortest path in an unweighted graph?
Breadth-First Search (BFS) finds the shortest path in an unweighted graph by exploring nodes level by level.
What is the worst-case time complexity of quick sort?
Quick sort’s worst-case time complexity is O(n^2), occurring when the pivot selection results in highly unbalanced partitions.
Which of the following is an output device?
A monitor is an output device, displaying data to the user, unlike scanners, mice, or keyboards, which are input devices.
What is the purpose of an operating system’s kernel?
The kernel is the core of an operating system, managing hardware, memory, and processes.
Which protocol is used for resolving domain names to IP addresses?
DNS (Domain Name System) resolves domain names (e.g., www.example.com) to IP addresses for network communication.
What is the primary role of a surge protector in a computer system?
A surge protector safeguards a computer system from voltage spikes, preventing hardware damage.
Which of the following is a procedural programming language?
C is a procedural programming language, focusing on step-by-step instructions, unlike Haskell, Java, or Prolog.
What does RAID stand for in data storage?
RAID stands for Redundant Array of Independent Disks, used for data redundancy and performance.
Which sorting algorithm uses a pivot to partition the array?
Quick Sort selects a pivot and partitions the array into elements smaller and larger than the pivot for sorting.
What is the purpose of a default gateway in networking?
A default gateway routes traffic from a local network to external networks, typically a router’s IP address.
Which of the following is a primary storage device?
RAM is a primary storage device, providing fast, volatile memory for active processes, unlike secondary storage like HDD or USB.
What does RDBMS stand for?
RDBMS stands for Relational Database Management System, organizing data into structured tables.
Which of the following is an example of a containerization platform?
Docker is a containerization platform for packaging applications, unlike Ansible, Terraform, or Puppet, which are automation tools.
What is the purpose of a 'do-while' loop in programming?
A 'do-while' loop executes its code block at least once, then repeats while a condition is true.
Which of the following is NOT a function of an operating system?
Code compilation is handled by compilers, not the operating system, which manages processes, memory, and files.
What is the role of a content delivery network (CDN)?
A CDN distributes web content via geographically dispersed servers, reducing latency and improving access speed.
Which of the following is a configuration management tool?
Ansible is a configuration management tool for automating system setups, unlike Git, Jenkins, or Kubernetes.
What is the hexadecimal equivalent of the decimal number 42?
Decimal 42 is 2*16 + 10 = 2A in hexadecimal (A represents 10).
Which of the following is a ransomware attack?
WannaCry is a ransomware attack that encrypts files and demands payment, unlike the other options, which are different attack types.
What does VLAN stand for?
VLAN stands for Virtual Local Area Network, segmenting a physical network into logical networks for security and efficiency.
Which data structure is used for implementing a graph’s adjacency list?
An adjacency list represents a graph using linked lists, where each vertex points to a list of adjacent vertices.
What is the purpose of a 'continue' statement in programming?
A 'continue' statement skips the current iteration of a loop and proceeds to the next iteration.
Which of the following is a compiled programming language?
C++ is a compiled language, translated into machine code before execution, unlike interpreted languages like Python, JavaScript, or Ruby.
What is the purpose of a repeater in a network?
A repeater amplifies and regenerates network signals to extend the distance of a network.
Which of the following is a lossless image format?
PNG is a lossless image format, preserving all data without compression loss. JPEG is lossy, discarding data. BMP is lossless but produces large files, and GIF is lossless but limited to 256 colors, making PNG the preferred choice.
What is the role of a lexical analyzer in a compiler?
A lexical analyzer breaks source code into tokens (e.g., keywords, identifiers) for the compiler’s syntax analysis.
Which of the following is a feature of a doubly linked list?
A doubly linked list has nodes with pointers to both the next and previous nodes, allowing bidirectional traversal.
What does POP3 stand for?
POP3 stands for Post Office Protocol version 3, used for retrieving emails from a server.
Which of the following is a deep learning framework?
TensorFlow is a deep learning framework for building neural networks, unlike Pandas, NumPy, or SciPy, which are data analysis libraries.
What is the purpose of a clock in a CPU?
The CPU clock generates pulses to synchronize operations, ensuring components work in unison.
Which of the following is a real-time operating system?
RTOS refers to real-time operating systems (e.g., VxWorks, FreeRTOS) designed for time-critical applications with predictable response times, unlike general-purpose systems like Windows 10, Ubuntu, or macOS.
What is the purpose of the RIP protocol in networking?
RIP (Routing Information Protocol) is a distance-vector routing protocol for directing network traffic.
Which of the following is a benefit of using polymorphism in programming?
Polymorphism allows objects to take multiple forms, enabling flexible and reusable code in object-oriented programming.
Now practice in exam mode
You've studied the answers — now test yourself under real exam conditions with the timer running.
Start JAMB Computer Science 2014 Quiz