Computer WAEC past questions and answers
Here are 20 computer science WAEC exam questions along with options and answers:
Question: What is the primary purpose of an operating system?
Options:
a) To run computer games
b) To manage hardware resources
c) To create web applications
d) To design user interfaces
Answer: b) To manage hardware resources
Question: Which programming language is often used for web development and is known for its simplicity and readability?
Options:
a) Java
b) C++
c) Python
d) Ruby
Answer: c) Python
Question: What does HTML stand for in web development?
Options:
a) HyperText Markup Language
b) High-Level Text Language
c) HyperTransfer Markup Language
d) Home Tool Markup Language
Answer: a) HyperText Markup Language
Question: Which data structure follows the Last-In-First-Out (LIFO) principle?
Options:
a) Queue
b) Stack
c) Linked List
d) Tree
Answer: b) Stack
Question: What is the term for a software application that helps manage databases?
Options:
a) Spreadsheet
b) Word Processor
c) Database Management System (DBMS)
d) Browser
Answer: c) Database Management System (DBMS)
Question: In object-oriented programming, what is the process of creating a new instance of a class called?
Options:
a) Inheritance
b) Encapsulation
c) Instantiation
d) Polymorphism
Answer: c) Instantiation
Question: What is the binary representation of the decimal number 25?
Options:
a) 11001
b) 10101
c) 11100
d) 10011
Answer: a) 11001
Question: Which networking protocol is responsible for sending and receiving email on the Internet?
Options:
a) HTTP
b) SMTP
c) FTP
d) DNS
Answer: b) SMTP
Question: What does "URL" stand for in the context of web addresses?
Options:
a) Uniform Resource Locator
b) Universal Routing Language
c) Unified Resource List
d) User Reachability Link
Answer: a) Uniform Resource Locator
Question: Which data structure organizes data in a hierarchy with a top-down structure?
Options:
a) Queue
b) Graph
c) Tree
d) Array
Answer: c) Tree
Question: In a relational database, what is a key that uniquely identifies a row in a table?
Options:
a) Primary Key
b) Foreign Key
c) Unique Key
d) Composite Key
Answer: a) Primary Key
Question: Which programming paradigm encourages the use of pure functions and avoids mutable state?
Options:
a) Imperative
b) Object-Oriented
c) Functional
d) Procedural
Answer: c) Functional
Question: What is the term for a set of well-defined rules governing the exchange of data in a computer network?
Options:
a) Protocol
b) Algorithm
c) Binary Code
d) Encryption
Answer: a) Protocol
Question: What is the primary function of an assembler in computer programming?
Options:
a) Translating high-level code into machine code
b) Managing memory allocation
c) Converting source code to bytecode
d) Handling input/output operations
Answer: a) Translating high-level code into machine code
Question: Which sorting algorithm has an average time complexity of O(n log n)?
Options:
a) Bubble Sort
b) Quick Sort
c) Insertion Sort
d) Selection Sort
Answer: b) Quick Sort
Question: What is the term for a software vulnerability that allows an attacker to take control of a computer system?
Options:
a) Firewall
b) Malware
c) Buffer Overflow
d) Anti-virus
Answer: c) Buffer Overflow
Question: What is the purpose of a "try-catch" block in programming?
Options:
a) To handle exceptions and errors
b) To define a loop
c) To create a function
d) To perform bitwise operations
Answer: a) To handle exceptions and errors
Question: Which data structure is often used to implement a priority queue?
Options:
a) Array
b) Stack
c) Queue
d) Heap
Answer: d) Heap
Question: What does the acronym SQL stand for in the context of databases?
Options:
a) Structured Query Language
b) Sequential Query Logic
c) System Query Library
d) Simple Query Line
Answer: a) Structured Query Language
Question: Which programming language was developed by Apple for iOS and macOS app development?
Options:
a) Swift
b) Java
c) C#
d) Ruby
Answer: a) Swift.
Post a Comment