Black Friday6 months free on yearly plansCreator $70$42Pro $120$72Ends Dec 4
RiLiFi
Start free

Quiz template · Corporate · Updated

Coding basics quiz questions and answers

20 coding basics questions with answers: HTML, Python, binary, the first computer bug, open source, Ada Lovelace and Moore's law.

Sample players and scores. In a real game, everyone answers on their own phone.

A plain-language coding round for a tech onboarding, a digital skills session or a computing class. Nobody has to write a line of code. The questions cover the words people hear every day: HTML, bugs, functions, open source and binary, with a few stories from computing history. The speed bonus starts off, so a careful answer beats a fast guess. Twenty questions take about 15 minutes.

All 20 questions

  1. What does HTML stand for?Easy

    • Hyperlink Text Machine Language
    • High Transfer Markup Language
    • Home Tool Markup Language
    • HyperText Markup Language, the right answer

    Answer: D. HyperText Markup Language. HTML describes the structure of a web page: headings, paragraphs, links and images. Tim Berners-Lee wrote the first version at CERN in the early 1990s, and the living standard is now kept by the WHATWG.

  2. True or false: the first recorded computer "bug" was a real moth found inside a Harvard computer in 1947.Easy

    • True, the right answer
    • False

    Answer: A. True. Operators of the Harvard Mark II found a moth stuck in a relay on 9 September 1947 and taped it into the logbook. The page, with the moth still attached, is in the Smithsonian's collection.

  3. Which programming language, first released in 1991 by Guido van Rossum, is named after a British comedy group?Easy

    • Java
    • Python, the right answer
    • Ruby
    • Perl

    Answer: B. Python. Van Rossum was reading the scripts of Monty Python's Flying Circus while he built the language and wanted a short, slightly mysterious name. The official documentation still uses Monty Python jokes in its examples.

  4. What does CSS do on a web page?Easy

    • Stores the page's data
    • Runs the web server
    • Encrypts the connection
    • Controls how the page looks, the right answer

    Answer: D. Controls how the page looks. CSS stands for Cascading Style Sheets. It sets colours, fonts, spacing and layout, so the same HTML can look completely different on a phone and a desktop.

  5. Binary, the number system computers use, has only two digits. Which two?Easy

    • 0 and 1, the right answer
    • 1 and 2
    • 0 and 9
    • 1 and 10

    Answer: A. 0 and 1. Each binary digit, or bit, matches a switch that is off or on. The decimal number 5 is 101 in binary: one four, no twos and one one.

  6. How many bits make up one byte?Easy

    • 4
    • 8, the right answer
    • 16
    • 32

    Answer: B. 8. Eight bits give 256 combinations, enough for every letter, digit and symbol on a keyboard with room to spare. File sizes count bytes, so a kilobyte holds about a thousand of them.

  7. Who is often called the first computer programmer, for the notes she wrote in 1843 on Charles Babbage's Analytical Engine?Medium

    • Grace Hopper
    • Ada Lovelace, the right answer
    • Hedy Lamarr
    • Katherine Johnson

    Answer: B. Ada Lovelace. Lovelace described a step-by-step method for the engine to compute Bernoulli numbers, a century before any such machine was built. The programming language Ada, used in aircraft and rail systems, is named after her.

  8. JavaScript, the language that makes web pages interactive, was created in 1995 by Brendan Eich at which company?Medium

    • Microsoft
    • Sun Microsystems
    • Oracle
    • Netscape, the right answer

    Answer: D. Netscape. Eich wrote the first version in about ten days for the Netscape Navigator browser. It was briefly called LiveScript before the marketing team renamed it to ride on Java's popularity.

  9. True or false: Java and JavaScript are two names for the same programming language.Medium

    • True
    • False, the right answer

    Answer: B. False. They are different languages with different designs and uses. The shared name was a 1995 marketing choice, and developers like to say the two have as much in common as car and carpet.

  10. In programming, a named block of instructions that you can run again and again from different places is called a what?Medium

    • A variable
    • A comment
    • A tag
    • A function, the right answer

    Answer: D. A function. A function takes inputs, does a job and often returns a result. Writing one once and calling it many times keeps programs shorter and easier to fix.

  11. What does it mean when software is described as open source?Medium

    • Anyone can view, change and share its source code, the right answer
    • It is free of bugs
    • It only runs in a web browser
    • It was written by volunteers

    Answer: A. Anyone can view, change and share its source code. The Open Source Initiative keeps the definition: the licence must allow anyone to read, modify and redistribute the code. Linux, Firefox and Python are all open source, and companies pay many of the developers.

  12. Which operating system kernel did Linus Torvalds start in 1991 as a student in Finland?Medium

    • Unix
    • Windows NT
    • BSD
    • Linux, the right answer

    Answer: D. Linux. Torvalds posted his hobby project to a newsgroup from the University of Helsinki and invited others to help. Today Linux runs most web servers, every Android phone and the top supercomputers.

  13. What does SQL, the language used to ask questions of a database, stand for?Medium

    • Structured Query Language, the right answer
    • Simple Query Language
    • Sequential Question List
    • System Query Logic

    Answer: A. Structured Query Language. IBM researchers designed it in the 1970s and it has been an ISO standard since 1987. A line such as SELECT name FROM customers reads almost like English, which is why it has lasted.

  14. Fortran, one of the first high-level programming languages and still used for scientific computing, was developed in the 1950s at which company?Hard

    • Bell Labs
    • IBM, the right answer
    • General Electric
    • Xerox

    Answer: B. IBM. John Backus led the IBM team, and the first compiler shipped in 1957. The name is short for Formula Translation, and weather forecasting code written in Fortran still runs today.

  15. Grace Hopper, a US Navy rear admiral and pioneer of the compiler, championed which business programming language of 1959?Hard

    An older woman in a dark naval officer uniform and white cap stands in front of an American flag.
    • COBOL, the right answer
    • Fortran
    • BASIC
    • Pascal

    Answer: A. COBOL. Hopper's FLOW-MATIC was the main model for COBOL, which let people write programs in English-like words. Banks and governments still run billions of lines of it, and the Navy named a destroyer after her.

  16. Web colours such as #FF0000 use the hexadecimal system. How many different digits does hexadecimal have?Hard

    • 8
    • 10
    • 16, the right answer
    • 32

    Answer: C. 16. Hexadecimal counts 0 to 9 and then A to F, so one digit stands for four bits and two digits for a byte. In #FF0000 the red channel is at its maximum of FF, or 255, and green and blue are zero.

  17. True or false: in code, a loop repeats a block of instructions until a condition is met.Easy

    • True, the right answer
    • False

    Answer: A. True. Loops are how a program handles a thousand rows with ten lines of code. Most languages have a for loop for a known count and a while loop that runs as long as a test stays true.

  18. A rough plan of a program written in plain language rather than a real programming language is called what?Medium

    • Bytecode
    • Pseudocode, the right answer
    • Machine code
    • Source code

    Answer: B. Pseudocode. Pseudocode has no fixed rules, so a team can agree on the steps before anyone picks a language. Exam boards use it so students can show their logic without worrying about syntax.

  19. Text written in a program for other people to read, which the computer ignores when it runs the code, is called a what?Easy

    • A string
    • A variable
    • A comment, the right answer
    • A token

    Answer: C. A comment. Comments explain why the code does something, which the code itself cannot say. In JavaScript they start with two slashes, and in Python with a hash sign.

  20. Moore's law, named after Intel co-founder Gordon Moore, observed that the number of transistors on a chip doubles about every how many years?Hard

    Round polished silicon discs of different sizes stand on white blocks in a museum display case.
    • Every six months
    • Every five years
    • Every two years, the right answer
    • Every ten years

    Answer: C. Every two years. Moore first wrote in 1965 that the count doubled every year and revised it to every two years in 1975. The first Intel chip of 1971 had about 2,300 transistors; modern chips carry tens of billions.

That's all 20. Host it live and everyone answers on their phone, with a leaderboard after each question.

Host this quiz live

How to run it

  1. Run it at the start of a tech onboarding week. The results show you which terms the group already knows, so you can skip those in the training.
  2. Question 7, Ada Lovelace, and question 15, Grace Hopper, open a short talk about the women who shaped programming. Keep a minute for it.
  3. Question 20 is the decider, so read the Moore's law answer out loud and ask the room what it means for the phones in their pockets.

Questions about this template

Do players need to know how to code?

No. Every question is about the words and ideas around programming, such as what HTML does or what a bug is. Someone who has only used a website can answer most of the first ten. A few reach into computing history and number systems, so they sort out the developers in the room.

Can I run this quiz live in a training session?

Yes. Press Go live and show the PIN or QR code on the screen. People answer on their phones in the browser, and the leaderboard appears after every question. The free plan covers 100 players in a session.

Do my colleagues need to install anything?

No. They open the link or scan the code, type the PIN and a name, and play in the browser. Only the host needs a RiLiFi account.

Can I swap questions for the languages my team uses?

Yes. Use this template to make a copy, then edit any question, add one about your own stack or remove the history questions for a shorter round.

Sources

Every answer shown here was checked against two sources. 39 pages on 12 sites, links last checked 27 November 2026.

  • en.wikipedia.org19
  • developer.mozilla.org7
  • bbc.co.uk3
  • computerhistory.org2
  • britannica.com
  • docs.python.org
  • ibm.com
  • intel.com
  • news.yale.edu
  • opensource.org
  • physics.nist.gov
  • tc39.es
All 39 source pages
  1. HTML - Wikipediaen.wikipedia.org
  2. HTML: HyperText Markup Language | MDNdeveloper.mozilla.org
  3. Software bug - Wikipediaen.wikipedia.org
  4. September 9: First Instance of Actual Computer Bug Being Found | This Day in History | Computer History Museumcomputerhistory.org
  5. Python (programming language) - Wikipediaen.wikipedia.org
  6. General Python FAQ - Python 3.15.2 documentationdocs.python.org
  7. CSS - Wikipediaen.wikipedia.org
  8. CSS: Cascading Style Sheets | MDNdeveloper.mozilla.org
  9. Binary number - Wikipediaen.wikipedia.org
  10. Binary - Digital data - CCEA - GCSE Digital Technology (CCEA) Revision - BBC Bitesizebbc.co.uk
  11. Byte - Wikipediaen.wikipedia.org
  12. Definitions of the SI units: The binary prefixesphysics.nist.gov
  13. Ada Lovelace - Wikipediaen.wikipedia.org
  14. Ada Lovelace | Babbage Engine | Computer History Museumcomputerhistory.org
  15. JavaScript - Wikipediaen.wikipedia.org
  16. ECMAScript® 2027 Language Specificationtc39.es
  17. JavaScript | MDNdeveloper.mozilla.org
  18. Function (computer programming) - Wikipediaen.wikipedia.org
  19. Function - Glossary | MDNdeveloper.mozilla.org
  20. Open-source software - Wikipediaen.wikipedia.org
  21. The Open Source Definition - Open Source Initiativeopensource.org
  22. Linux - Wikipediaen.wikipedia.org
  23. britannica.com
  24. SQL - Wikipediaen.wikipedia.org
  25. SQL - Glossary | MDNdeveloper.mozilla.org
  26. Fortran - Wikipediaen.wikipedia.org
  27. Fortran | IBMibm.com
  28. Grace Hopper - Wikipediaen.wikipedia.org
  29. Grace Murray Hopper (1906-1992): A legacy of innovation and service | Yale Newsnews.yale.edu
  30. Hexadecimal - Wikipediaen.wikipedia.org
  31. Hexadecimal numbers - Digital data - CCEA - GCSE Digital Technology (CCEA) Revision - BBC Bitesizebbc.co.uk
  32. Control flow - Wikipediaen.wikipedia.org
  33. Looping code - Learn web development | MDNdeveloper.mozilla.org
  34. Pseudocode - Wikipediaen.wikipedia.org
  35. Pseudocode - Designing an algorithm - KS3 Computer Science Revision - BBC Bitesizebbc.co.uk
  36. Comment (computer programming) - Wikipediaen.wikipedia.org
  37. Grammar and types - JavaScript | MDNdeveloper.mozilla.org
  38. Moore's law - Wikipediaen.wikipedia.org
  39. Moore’s Lawintel.com

Picture credits

  • An older woman in a dark naval officer uniform and white cap stands in front of an American flag, by James S. Davis, US NavyPublic domain
  • Round polished silicon discs of different sizes stand on white blocks in a museum display case, by ArticCyndaCC0

More templates

Start free

Run it live with your group.

Players join from their phones with a PIN. No app to install, free for up to 100 participants per session.