Computer Programming Trivia Questions

Explore the ideas and tools behind writing software, from debugging and code editors to major programming paradigms. See how programmers turn instructions into applications, websites, and more.

30 questions · 10 per game

Computer Programming trivia questions and answers

  1. Which programming paradigm organizes software around objects that bundle data with methods?

    Show answer

    Object-oriented programming

    Languages such as Java and C# commonly support this paradigm, though they also offer other programming styles.

  2. Which programming paradigm emphasizes pure functions and avoids changing shared state?

    Show answer

    Functional programming

    Functional techniques can make programs easier to reason about because a pure function returns the same result for the same inputs.

  3. What programming paradigm describes a program as a sequence of commands that change its state?

    Show answer

    Imperative programming

    Many familiar languages support imperative code, even when they also support other paradigms.

  4. What kind of test checks one small unit of software, such as a single function, in isolation?

    Show answer

    Unit test

    Unit tests are often automated and run frequently to catch regressions early.

  5. What debugging feature pauses execution at a chosen line so a programmer can inspect the program's state?

    Show answer

    Breakpoint

    Debuggers can also pause when a condition becomes true, rather than only at a fixed line.

How to play

  • • Each game has 10 questions. Before each one you see only a hint about its topic.
  • • Choose what it’s worth, from $1 to $20. Each value can only be used once per game.
  • • Type your answer. Small spelling mistakes are fine. Get it right and you win that amount.

Related categories