50 Computer Science Quiz Questions & Answers
Programming, algorithms, databases, and web development questions for coders and CS students.
Below are 50 computer science quiz questions with the correct answer and a short explanation for each, grouped from easy to hard. Use them to revise, host a quiz night, or prepare for competitions.
Answers are hidden so you can test yourself: tap any question to reveal its answer. To read or print them all, press Show all answers.
Easy Computer Science Questions
24 questionsWarm-up questions on the basics of computer science, good for beginners and younger players.
1
What does CPU stand for?
โ Central Processing Unit
The CPU (Central Processing Unit) is the 'brain' of the computer that executes instructions and performs calculations.
2
What does HTML stand for?
โ Hyper Text Markup Language
HTML (Hyper Text Markup Language) is the standard markup language for creating web pages and web applications.
3
What is an algorithm?
โ A step-by-step procedure to solve a problem
An algorithm is a finite sequence of well-defined instructions for solving a problem or performing a computation.
4
What is RAM?
โ Random Access Memory
RAM (Random Access Memory) is volatile memory that temporarily stores data the CPU is actively using for quick access.
5
What is binary code?
โ A system using only 0s and 1s
Binary code is the fundamental language of computers, using only two digits (0 and 1) to represent all data and instructions.
6
What programming language is known for web development?
โ JavaScript
JavaScript is the primary language for web development, running in browsers to create interactive websites and web applications.
7
What is an operating system?
โ Software that manages computer hardware and software
An operating system (OS) like Windows, macOS, or Linux manages hardware, software, and provides services for computer programs.
8
What does 'AI' stand for?
โ Artificial Intelligence
AI (Artificial Intelligence) refers to computer systems designed to perform tasks that normally require human intelligence.
9
What is Python primarily known for?
โ Easy readability and versatility
Python is known for its clean, readable syntax and versatility: used in AI, data science, web development, and automation.
10
What is a database?
โ An organized collection of structured data
A database is an organized collection of structured data stored electronically, managed by a Database Management System (DBMS).
11
What is cloud computing?
โ Delivering computing services over the internet
Cloud computing delivers computing services (servers, storage, databases, networking) over the internet ('the cloud') on demand.
12
What is the difference between HTTP and HTTPS?
โ HTTPS is encrypted and secure
HTTPS adds SSL/TLS encryption to HTTP, securing data transferred between browser and server: essential for passwords and payments.
13
What is a 'firewall' in computing?
โ A security system monitoring network traffic
A firewall is a network security system that monitors and controls incoming and outgoing traffic based on predetermined security rules.
14
What is the purpose of CSS?
โ Styling web pages
CSS (Cascading Style Sheets) is used to style and layout web pages, controlling colors, fonts, spacing, and responsive design.
15
What does 'open source' mean?
โ Source code publicly available for anyone to use and modify
Open source software has publicly available source code that anyone can inspect, modify, and distribute. Examples include Linux, Firefox, and Python.
16
What is the Internet of Things (IoT)?
โ Network of physical devices connected to the internet
IoT refers to physical devices (sensors, appliances, vehicles) connected to the internet, collecting and sharing data automatically.
17
What is cybersecurity?
โ Protecting systems and networks from digital attacks
Cybersecurity involves protecting computers, servers, networks, and data from malicious attacks, unauthorized access, and digital threats.
18
What does 'debugging' mean?
โ Finding and fixing errors in code
Debugging is the process of identifying, isolating, and fixing bugs (errors) in computer programs to ensure correct functionality.
19
Which company developed the Android operating system?
โ Google
Android was originally developed by Android Inc., acquired by Google in 2005. It's now the world's most popular mobile OS.
20
What is a VPN?
โ Virtual Private Network
A VPN (Virtual Private Network) creates an encrypted tunnel for your internet traffic, protecting privacy and allowing access to restricted content.
21
What does 'IP address' stand for?
โ Internet Protocol address
An IP (Internet Protocol) address is a unique numerical identifier assigned to each device connected to a computer network.
22
What is the difference between frontend and backend?
โ Frontend is user-facing; backend is server-side logic
Frontend handles the user interface (HTML, CSS, JS); backend handles server logic, databases, and APIs (Node.js, Python, etc.).
23
What is ChatGPT?
โ An AI language model by OpenAI
ChatGPT is an AI chatbot developed by OpenAI, using large language models (GPT) to generate human-like text responses.
24
What is the Linux operating system?
โ An open-source Unix-like operating system
Linux is a free, open-source operating system kernel created by Linus Torvalds in 1991. It powers most servers, Android phones, and supercomputers.
Medium Computer Science Questions
23 questionsQuestions that go beyond the basics. A good test for regular quiz players.
25
Who is considered the 'father of computer science'?
โ Alan Turing
Alan Turing is considered the father of computer science for his foundational work on computation theory and the Turing machine concept.
26
What does URL stand for?
โ Uniform Resource Locator
URL (Uniform Resource Locator) is the address of a web resource on the internet, like https://www.quizoxa.com.
27
What is a bug in programming?
โ An error or flaw in code
A bug is an error, flaw, or unintended behavior in a computer program. The term dates back to a moth found in a Harvard computer in 1947.
28
What does 'API' stand for?
โ Application Programming Interface
An API (Application Programming Interface) allows different software applications to communicate with each other.
29
What is machine learning?
โ A subset of AI where systems learn from data
Machine learning is a branch of AI where algorithms learn patterns from data and improve performance without being explicitly programmed.
30
What does SSD stand for?
โ Solid State Drive
An SSD (Solid State Drive) uses flash memory to store data, much faster than traditional HDDs with no moving mechanical parts.
31
Who created the World Wide Web?
โ Tim Berners-Lee
Tim Berners-Lee invented the World Wide Web in 1989 at CERN, creating HTML, HTTP, and the first web browser.
32
What is Git used for?
โ Version control for code
Git is a distributed version control system that tracks changes in source code, allowing multiple developers to collaborate on projects.
33
What is a 'stack overflow' error?
โ When call stack memory is exhausted
A stack overflow occurs when the call stack exceeds its allocated memory, usually due to infinite recursion or very deep function calls.
34
What language is used for iOS app development?
โ Swift
Swift is Apple's programming language for iOS, macOS, watchOS, and tvOS app development, introduced in 2014 as a successor to Objective-C.
35
What is recursion in programming?
โ A function that calls itself
Recursion is when a function calls itself to solve a problem by breaking it into smaller subproblems until reaching a base case.
36
What is Docker used for?
โ Containerization of applications
Docker is a platform that packages applications into containers: lightweight, portable, self-sufficient environments that run consistently everywhere.
37
What is SQL used for?
โ Managing and querying relational databases
SQL (Structured Query Language) is the standard language for managing and querying relational databases like MySQL, PostgreSQL, and Oracle.
38
What is blockchain in simple terms?
โ A decentralized, tamper-proof digital ledger
Blockchain is a chain of blocks containing data, linked cryptographically. Once data is recorded, it's extremely difficult to change.
39
What is a compiler?
โ Software that translates code into machine language
A compiler translates the entire source code of a program into machine code (binary) before execution, unlike an interpreter which does it line by line.
40
What is React.js?
โ A JavaScript library for building user interfaces
React.js is a JavaScript library developed by Facebook (Meta) for building fast, interactive user interfaces, especially single-page applications.
41
What is quantum computing?
โ Computing using quantum-mechanical phenomena
Quantum computing uses quantum bits (qubits) that can exist in multiple states simultaneously, potentially solving problems impossible for classical computers.
42
What programming language is used for Android app development?
โ Kotlin/Java
Kotlin (and Java) are the primary languages for Android development. Google declared Kotlin the preferred language in 2019.
43
What is 'DevOps'?
โ Practices combining development and operations
DevOps is a set of practices combining software development (Dev) and IT operations (Ops) to shorten the development lifecycle and deliver updates faster.
44
What is a 'DDoS attack'?
โ Overwhelming a system with traffic to make it unavailable
A DDoS (Distributed Denial of Service) attack floods a server with massive traffic from multiple sources, making it unavailable to legitimate users.
45
What is Node.js?
โ A JavaScript runtime for server-side development
Node.js is a JavaScript runtime built on Chrome's V8 engine, allowing JavaScript to run on servers, enabling full-stack JavaScript development.
46
What is the Turing Test?
โ A test to determine if a machine can exhibit human-like intelligence
The Turing Test, proposed by Alan Turing in 1950, tests a machine's ability to exhibit intelligent behavior indistinguishable from a human.
47
What is an IDE?
โ Integrated Development Environment
An IDE (Integrated Development Environment) is software providing tools for coding: editor, debugger, compiler, and more (e.g., VS Code, IntelliJ).
Hard Computer Science Questions
3 questionsThe toughest computer science questions in our bank, for experts and quiz-night finalists.
48
What is Big O notation used for?
โ Describing algorithm efficiency and time complexity
Big O notation describes the worst-case time or space complexity of an algorithm, e.g., O(n) for linear time, O(log n) for logarithmic.
49
What is a 'linked list' in data structures?
โ Nodes connected by pointers
A linked list is a linear data structure where each element (node) contains data and a pointer/reference to the next node in the sequence.
50
What is a 'hash table'?
โ A data structure for fast key-value lookups
A hash table stores key-value pairs using a hash function for fast O(1) average-time lookups, insertions, and deletions.
Ready to Test Yourself?
How many did you get right? Now try them against the clock. The interactive Computer Science quiz picks questions at random, adds a countdown timer, and tracks your score.
Keep exploring
Test your skills or dive deeper into related trivia questions and expert study guides.