C quiz: 56 questions

56 questions from the 18 lessons of Structured Programming in C. Each answer is explained, with a link back to the lesson it comes from, and your best score stays on this device.

Test yourself

56 questions from this course's lessons, in a random order. See what you remember, then go back to the lessons behind the questions you missed.

How many questions?

What the quiz covers

  1. Your first C program (3 questions)
  2. Variables and types (3 questions)
  3. Operators and expressions (3 questions)
  4. Input and output: printf and scanf (3 questions)
  5. Decisions: if, else and switch (3 questions)
  6. Loops: for, while and do-while (3 questions)
  7. Arrays (3 questions)
  8. Strings are char arrays (3 questions)
  9. Functions (3 questions)
  10. Recursion and the call stack (3 questions)
  11. Pointers (3 questions)
  12. Pointers and arrays (3 questions)
  13. Structures (3 questions)
  14. Constants, enums and macros (4 questions)
  15. Dynamic memory: malloc and free (3 questions)
  16. Linked lists (3 questions)
  17. Reading and writing files (4 questions)
  18. Bugs C will not catch (3 questions)