Computer programming revision

Programming Concepts Flashcards

Review language-independent ideas used in coding, debugging, data structures, APIs, and version control.

12 flashcards Beginner Reviewed Jul 15, 2026
Recall progress 0/12 0%

Mark a card when you can explain the answer without looking.

Questions and answers stay visible so the page remains useful without JavaScript or an account.

Flashcards

Recall first, then verify.

  1. Question 1

    What is a variable in programming?

    Answer

    A named reference or storage location used to hold a value that a program can read or change.

  2. Question 2

    What is a function?

    Answer

    A reusable block of code that performs a task and may accept inputs and return an output.

  3. Question 3

    What is a loop?

    Answer

    A control structure that repeats a block of code while a condition holds or for each item in a sequence.

  4. Question 4

    What is a conditional statement?

    Answer

    A control structure that chooses which code to run based on whether a condition is true or false.

  5. Question 5

    What is an array or list?

    Answer

    An ordered collection that stores multiple values under one variable or structure.

  6. Question 6

    What is an object in programming?

    Answer

    A value that groups related data and, in many languages, behavior under one identity.

  7. Question 7

    What is recursion?

    Answer

    A technique in which a function solves a problem by calling itself on a smaller or simpler case, with a base case that stops the calls.

  8. Question 8

    What is an algorithm?

    Answer

    A finite, ordered set of steps for solving a problem or completing a computation.

  9. Question 9

    What is debugging?

    Answer

    The process of finding, understanding, and correcting defects in a program.

  10. Question 10

    What is an API?

    Answer

    An application programming interface: a defined way for software components to request data or behavior from one another.

  11. Question 11

    What is version control?

    Answer

    A system that records changes to files so people can inspect history, collaborate, and restore earlier versions.

  12. Question 12

    What is a data type?

    Answer

    A classification that describes the kind of value data represents and the operations that can be performed on it.