• 105 questions

Computer Science Trivia Questions

Tap a choice for the answer and its source: fun computer science trivia questions with no brand names.

What is another name for a NOT gate?
More options

Unofficial practice questions, not affiliated with any school, exam board or quiz show. Checked October 2, 2026.

All 105 questions with answers

Numbers and logic

  • A Boolean value can be one of how many things? Answer: Two: true or false. Wikipedia: Boolean data type
  • An XOR gate gives a true output when the count of true inputs is what? Answer: Odd. Wikipedia: XOR gate
  • Claude Shannon's master's thesis showed that which algebra could be applied to electrical switching circuits? Answer: Boolean algebra. Wikipedia: Claude Shannon
  • Counting in binary on the fingers of both hands, how high can you go? Answer: 1,023. Wikipedia: Finger binary
  • Every logic function can be built from NAND gates alone. What is that property called? Answer: Functional completeness. Wikipedia: NAND gate
  • Hexadecimal is a number system with which base? Answer: 16. Wikipedia: Hexadecimal
  • How many different values can one byte of eight bits hold? Answer: 256. Wikipedia: Byte
  • How much data does one flip-flop store? Answer: A single bit. Wikipedia: Flip-flop (electronics)
  • In computing and telecommunications, what is an octet? Answer: A unit of eight bits. Wikipedia: Octet (computing)
  • In the SI system the prefix mega multiplies by how much? Answer: 1,000,000. Wikipedia: Megabyte
  • Octal is a number system with which base? Answer: 8. Wikipedia: Octal
  • Two's complement is the most common way for a computer to represent which numbers? Answer: Signed integers: positive, negative and zero. Wikipedia: Two's complement
Show all 17
  • What is a parity bit for? Answer: Detecting errors. Wikipedia: Parity bit
  • What is another name for a NOT gate? Answer: An inverter. Wikipedia: Inverter (logic gate)
  • What is the table that sets out the value of a logical expression for every combination of its inputs? Answer: A truth table. Wikipedia: Truth table
  • When does an AND gate give an output of 1? Answer: Only when all of its inputs are 1. Wikipedia: AND gate
  • Which character standard is designed to support text in every writing system of the world? Answer: Unicode. Wikipedia: Unicode

Pioneers and early machines

  • According to Moore's law, about how often does the count of transistors on an integrated circuit double? Answer: Every two years. Wikipedia: Moore's law
  • Ada Lovelace's notes describe a method for the analytical engine to calculate which numbers? Answer: Bernoulli numbers. Wikipedia: Ada Lovelace
  • Alan Turing proved that no general method can tell, for every program and input, whether the program will ever stop. What is this problem called? Answer: The halting problem. Wikipedia: Halting problem
  • Among high-level programming languages still commonly used, Lisp is the second oldest. Which is older? Answer: Fortran. Wikipedia: Lisp (programming language)
  • The Antikythera mechanism of ancient Greece could be used to predict what? Answer: Astronomical positions and eclipses. Wikipedia: Antikythera mechanism
  • At which English university did Maurice Wilkes and his team build the EDSAC computer? Answer: Cambridge. Wikipedia: EDSAC
  • The Bombe, an electro-mechanical device, is what British codebreakers used against the messages of which machine? Answer: Enigma. Wikipedia: Bombe
  • Colossus was designed by Tommy Flowers. What was his trade? Answer: Telephone engineer. Wikipedia: Colossus computer
  • Colossus, a set of British computers of 1943 to 1945, was built to help break which cipher? Answer: The Lorenz cipher. Wikipedia: Colossus computer
  • In 1642 a French mathematician invented a mechanical calculator. Who was he? Answer: Blaise Pascal. Wikipedia: Pascaline
  • In the design of the analytical engine, what was the part called the mill? Answer: The arithmetic unit. Wikipedia: Analytical engine
  • In which year did Alan Turing invent the abstract machine now named after him? Answer: 1936. Wikipedia: Turing machine
Show all 22
  • John Atanasoff built an early electronic computer with his student Clifford Berry at a college in which state? Answer: Iowa. Wikipedia: Atanasoff–Berry computer
  • Plankalkül was the first of what to be designed for a computer? Answer: High-level programming language. Wikipedia: Plankalkül
  • Richard Hamming invented his error-correcting codes in 1950 to fix mistakes made by which machines? Answer: Punched card readers. Wikipedia: Hamming code
  • The von Neumann architecture is based on a report that John von Neumann wrote in which year? Answer: 1945. Wikipedia: Von Neumann architecture
  • What did Alan Turing call his test of machine intelligence in his paper of 1950? Answer: The imitation game. Wikipedia: Turing test
  • Which award is often called the Nobel Prize of Computing? Answer: The Turing Award. Wikipedia: Turing Award
  • Which German mathematician invented the calculator known as the stepped reckoner? Answer: Gottfried Wilhelm Leibniz. Wikipedia: Stepped reckoner
  • Which problem did Edsger Dijkstra formulate and solve in 1956? Answer: The shortest path problem. Wikipedia: Edsger W. Dijkstra
  • Which programming language did Dennis Ritchie create in 1972? Answer: C. Wikipedia: C (programming language)
  • Who introduced the lambda calculus in the 1930s? Answer: Alonzo Church. Wikipedia: Lambda calculus

Algorithms and data

  • A recursive function has recursive cases and at least one case of which other kind? Answer: A base case. Wikipedia: Recursion (computer science)
  • According to the Roman historian Suetonius, Julius Caesar wrote secret messages by shifting each letter how many places? Answer: Three. Wikipedia: Caesar cipher
  • Binary search only works on a list that is what? Answer: Sorted. Wikipedia: Binary search
  • How does a linear search look for an item in a list? Answer: It checks each element in turn. Wikipedia: Linear search
  • How does an interpreter differ from a compiler? Answer: It runs source code without compiling it to machine code first. Wikipedia: Interpreter (computing)
  • In a binary tree, how many children can a node have at most? Answer: Two. Wikipedia: Binary tree
  • In a linked list, what does each element point to? Answer: The next element. Wikipedia: Linked list
  • In a tree data structure, which node has no parent? Answer: The root. Wikipedia: Tree (abstract data type)
  • In which order do items come off a stack? Answer: Last in, first out. Wikipedia: Stack (abstract data type)
  • In which order do items leave a queue? Answer: First in, first out. Wikipedia: Queue (abstract data type)
  • In zero-based numbering, which index does the first item of a sequence get? Answer: 0. Wikipedia: Zero-based numbering
  • John McCarthy invented garbage collection around 1959 to make memory easier to manage in which language? Answer: Lisp. Wikipedia: Garbage collection (computer science)
Show all 26
  • On a flowchart, which shape usually marks a decision? Answer: A diamond. Wikipedia: Flowchart
  • P versus NP is among the seven Millennium Prize Problems. What is the prize for the first correct solution of one of them? Answer: One million US dollars. Wikipedia: P versus NP problem
  • Public-key cryptography uses keys that come in what? Answer: Related pairs. Wikipedia: Public-key cryptography
  • What does a compiler do? Answer: It turns code in one programming language into another. Wikipedia: Compiler
  • What does a hash table use to work out where a value is kept? Answer: A hash function. Wikipedia: Hash table
  • What does big O notation describe about an algorithm? Answer: How its running time or memory grows with the size of the input. Wikipedia: Big O notation
  • What is a cache for? Answer: Keeping data so that later requests for it are answered faster. Wikipedia: Cache (computing)
  • What is a set of instructions in sequence that, as written, would go on without end called? Answer: An infinite loop. Wikipedia: Infinite loop
  • What is pseudocode? Answer: A description of the steps of an algorithm, written partly in plain words. Wikipedia: Pseudocode
  • What makes software open source? Answer: Its source code is publicly available. Wikipedia: Open-source software
  • Which kind of low-level language matches a processor's machine code instructions very closely? Answer: Assembly language. Wikipedia: Assembly language
  • Which problem asks for the shortest route that visits every city exactly once and returns to the start? Answer: The traveling salesman problem. Wikipedia: Travelling salesman problem
  • Which simple sorting method steps through a list again and again, swapping neighbors that are in the wrong order? Answer: Bubble sort. Wikipedia: Bubble sort
  • Who invented merge sort in 1945? Answer: John von Neumann. Wikipedia: Merge sort

Networks and the web

  • Each participant in a peer-to-peer network acts as what? Answer: A provider and a requester of resources at once. Wikipedia: Peer-to-peer
  • How do two computers set up a TCP connection? Answer: With a three-way handshake. Wikipedia: Transmission Control Protocol
  • How many bits long is an IPv4 address? Answer: 32. Wikipedia: IPv4
  • How many bits long is an IPv6 address? Answer: 128. Wikipedia: IPv6
  • In computing, what is bandwidth? Answer: The greatest rate at which data can move across a path. Wikipedia: Bandwidth (computing)
  • In the client-server model, what does the client do? Answer: It requests content or a service from a server. Wikipedia: Client–server model
  • In the Domain Name System, what is a domain at the highest level, just below the root, called? Answer: A top-level domain. Wikipedia: Top-level domain
  • In which year was the World Wide Web Consortium founded? Answer: 1994. Wikipedia: World Wide Web Consortium
  • The network tool ping takes its name from which technology? Answer: Sonar. Wikipedia: Ping (networking utility)
  • What carries the information in fiber-optic communication? Answer: Pulses of light. Wikipedia: Fiber-optic communication
  • What does a firewall do? Answer: It watches and controls network traffic by a set of security rules. Wikipedia: Firewall (computing)
  • What does a router do? Answer: It passes data packets from one computer network to another. Wikipedia: Router (computing)
Show all 22
  • What does HTTP stand for? Answer: Hypertext Transfer Protocol. Wikipedia: HTTP
  • What does the S in HTTPS stand for? Answer: Secure. Wikipedia: HTTPS
  • What does the status code 404 mean? Answer: Not found. Wikipedia: HTTP 404
  • What is hypertext? Answer: Text with references to further text which the reader can reach at once. Wikipedia: Hypertext
  • What is the standard IPv4 address a computer uses to talk to itself? Answer: 127.0.0.1. Wikipedia: Localhost
  • What kind of network links computers inside a limited area like a home, a campus or a building? Answer: A local area network. Wikipedia: Local area network
  • Which body looks after the Internet protocol suite's technical standards? Answer: The Internet Engineering Task Force. Wikipedia: Internet Engineering Task Force
  • Which British computer scientist worked on packet switching independently from 1965, at the National Physical Laboratory? Answer: Donald Davies. Wikipedia: Packet switching
  • Which port does HTTP use by default? Answer: 80. Wikipedia: Port (computer networking)
  • The word modem is short for what? Answer: Modulator-demodulator. Wikipedia: Modem

Where computing words come from

  • A daemon is a program that works in the background. Which imaginary being of physics inspired the name? Answer: Maxwell's demon. Wikipedia: Daemon (computing)
  • The baud, a unit of signaling speed, is named after whom? Answer: Émile Baudot. Wikipedia: Baud
  • Big-endian and little-endian, as terms, were borrowed from which satirical novel? Answer: Gulliver's Travels. Wikipedia: Endianness
  • Booting a computer takes its name from which old phrase? Answer: To pull oneself up by one's bootstraps. Wikipedia: Booting
  • In the name RAM, what does "random-access" mean? Answer: The memory can be read or changed in whatever order. Wikipedia: Random-access memory
  • The kind of harmful program called a Trojan horse is named after a story from which mythology? Answer: Greek. Wikipedia: Trojan horse (computing)
  • The mathematician John Tukey is credited with the first use, in 1958, of which word for computer programs? Answer: Software. Wikipedia: Software
  • Programmers say GIGO. What does it stand for? Answer: Garbage in, garbage out. Wikipedia: Garbage in, garbage out
  • Some reference books trace the word glitch to German and Yiddish words meaning what? Answer: To slip or slide. Wikipedia: Glitch
  • The T in CAPTCHA stands for the name of which computer scientist? Answer: Turing. Wikipedia: CAPTCHA
  • The term core dump comes from which old kind of memory? Answer: Magnetic-core memory. Wikipedia: Core dump
  • What did the word computer mean when it first appeared in writing in 1613? Answer: A person who does calculations. Wikipedia: Computer (occupation)
Show all 18
  • What does ASCII stand for? Answer: American Standard Code for Information Interchange. Wikipedia: ASCII
  • Who coined the term byte, in June 1956? Answer: Werner Buchholz. Wikipedia: Byte
  • Who described cybernetics as "control and communication in the animal and the machine"? Answer: Norbert Wiener. Wikipedia: Cybernetics
  • Why is a fix to a program called a patch? Answer: Fixes were once spliced into paper tape or decks of punched cards. Wikipedia: Patch (computing)
  • Why is the computer mouse thought to have been given that name? Answer: Its cord looked like a tail. Wikipedia: Computer mouse
  • The word pixel is short for what? Answer: Picture element. Wikipedia: Pixel

How it works

These computer science trivia questions cover the school subject in five rounds: numbers and logic, pioneers and early machines, algorithms and data, networks and the web, and where computing words come from. No company or product is an answer.

Read the full guide

Five rounds, no brand names

Numbers and logic asks about bits, bytes, bases and gates. Pioneers and early machines runs from the Antikythera mechanism to the language C. Algorithms and data puts stacks, queues, trees and sorting in plain words. Networks and the web covers packets, ports and protocols. Where computing words come from explains boot, patch, daemon and glitch.

Rounds and levels

Topic, under the question, keeps to one round, and Level beside it to easy, medium or hard. The levels are our estimate. Tap a choice to check it; the reason and the page it was read on appear with the answer.

  • The easy questions suit a class starter: how many values a byte holds, how a stack works, what 404 means.

Questions and answers

What are some easy computer science trivia questions?

What does HTTP stand for? In which order do items come off a stack? What does the status code 404 mean? The answers are Hypertext Transfer Protocol, last in first out, and not found.

Who is the Turing in the Turing Award and the Turing test?

Alan Turing. He invented the abstract Turing machine in 1936 and set out his test of machine intelligence, the imitation game, in a paper of 1950. The T in CAPTCHA is his name too.

Why are there no questions about phones, consoles or software makers?

This pack is the school subject: logic, algorithms, networks and dated history. No company, product, device, game or platform is an answer or the subject of a question.

How were the answers checked?

Each was read on October 2, 2026 in the Wikipedia article linked under it. Questions whose fact another quiz on this site already asks were dropped, among them what CPU stands for and how many characters ASCII has.