
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.
Computer Programming trivia questions and answers
Which programming paradigm organizes software around objects that bundle data with methods?
Show answerHide answer
Object-oriented programming
Languages such as Java and C# commonly support this paradigm, though they also offer other programming styles.
Which programming paradigm emphasizes pure functions and avoids changing shared state?
Show answerHide answer
Functional programming
Functional techniques can make programs easier to reason about because a pure function returns the same result for the same inputs.
What programming paradigm describes a program as a sequence of commands that change its state?
Show answerHide answer
Imperative programming
Many familiar languages support imperative code, even when they also support other paradigms.
What kind of test checks one small unit of software, such as a single function, in isolation?
Show answerHide answer
Unit test
Unit tests are often automated and run frequently to catch regressions early.
What debugging feature pauses execution at a chosen line so a programmer can inspect the program's state?
Show answerHide 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.


