Computer science WAEC past questions and answers
Question: What is the purpose of an operating system?
A) Managing hardware resources
B) Running applications
C) Both A and B
D) None of the above
Answer: C) Both A and B
Question: Which data structure follows the Last In, First Out (LIFO) principle?
A) Queue
B) Stack
C) Linked List
D) Array
Answer: B) Stack
Question: What is the time complexity of the quicksort algorithm in the average case?
A) O(n)
B) O(n log n)
C) O(n^2)
D) O(log n)
Answer: B) O(n log n)
Question: Which programming paradigm promotes code reusability through the concept of classes and objects?
A) Procedural Programming
B) Object-Oriented Programming
C) Functional Programming
D) Logical Programming
Answer: B) Object-Oriented Programming
Question: What is the purpose of the HTTP protocol?
A) File transfer
B) Email communication
C) Web page communication
D) Database queries
Answer: C) Web page communication
Question: In the context of databases, what does SQL stand for?
A) Structured Query Language
B) Sequential Query Language
C) Simple Question Language
D) Systematic Query Language
Answer: A) Structured Query Language
Question: Which of the following is not a programming language?
A) Python
B) HTML
C) Java
D) SSL
Answer: B) HTML
Question: What does the acronym API stand for?
A) Application Programming Interface
B) Advanced Program Interaction
C) Automated Protocol Invocation
D) Application Process Integration
Answer: A) Application Programming Interface
Question: What is a binary search used for?
A) Sorting elements
B) Searching a sorted array
C) Hashing
D) Encrypting data
Answer: B) Searching a sorted array
Question: Which data structure is used to represent a hierarchical structure with a root value and subtrees of children?
A) Linked List
B) Tree
C) Graph
D) Stack
Answer: B) Tree
Question: What is the purpose of a firewall in a computer network?
A) Speed up internet connection
B) Block unauthorized access
C) Enhance computer performance
D) Encrypt data transmission
Answer: B) Block unauthorized access
Question: Which type of join in SQL returns all rows when there is a match in one of the tables?
A) INNER JOIN
B) LEFT JOIN
C) RIGHT JOIN
D) FULL OUTER JOIN
Answer: D) FULL OUTER JOIN
Question: What is the role of a compiler in programming?
A) Execute code line by line
B) Convert high-level code to machine code
C) Debug code errors
D) Manage memory allocation
Answer: B) Convert high-level code to machine code
Question: Which sorting algorithm has a worst-case time complexity of O(n^2)?
A) QuickSort
B) MergeSort
C) BubbleSort
D) InsertionSort
Answer: C) BubbleSort
Question: What does the acronym URL stand for?
A) Universal Resource Locator
B) Uniform Resource Locator
C) Unified Resource Locator
D) Universal Routing Locator
Answer: B) Uniform Resource Locator
Question: What is the purpose of the DNS (Domain Name System) in networking?
A) Encrypt data transmission
B) Convert IP addresses to domain names
C) Control internet speed
D) Establish secure connections
Answer: B) Convert IP addresses to domain names
Question: Which of the following is a dynamic programming language?
A) C++
B) Java
C) Python
D) C#
Answer: C) Python
Question: What is the primary purpose of a cache memory in a computer system?
A) Store temporary data
B) Increase main memory capacity
C) Speed up data access
D) Manage file storage
Answer: C) Speed up data access
Question: Which of the following is a non-relational database management system?
A) MySQL
B) Oracle
C) MongoDB
D) SQLite
Answer: C) MongoDB
Question: In networking, what does the acronym LAN stand for?
A) Local Access Network
B) Long Area Network
C) Large Area Network
D) Local Area Network
Answer: D) Local Area Network
Post a Comment