A pair of LLM prompts for students who have just finished reading about a data structure in C — and want to find out, gently, whether they actually got it.
You've just finished a chapter or a video on a C data structure. You think you understand it. The only honest way to find out is to be asked — and to be asked one concept at a time, by something that won't let you slide past the parts you fudged.
Each prompt below frames the LLM as a quiz partner with a tight, specific style. It will ask you a question — usually one that requires reading a small C snippet and predicting what it prints — wait for your answer, give brief feedback, and move on. If you struggle, it nudges you with an analogy rather than handing over the answer. After five clean correct answers, it stops and tells you what you've actually demonstrated you understand.
Pointers, nodes, traversal, insertion, deletion, the dreaded segfault when you forget to malloc.
Recursive structure, ordering invariant, in-order traversal, insertion, deletion's three cases, and balance — or the lack of it.
Paste this into a fresh chat right after you finish studying linked lists. Answer honestly; don't peek at your notes.
I have just learned about **linked list in C**. 1. Quiz me on this topic one concept with a sample at a time. 2. Ask a question that requires me tell the output of sample code 3. Keep your feedback under 100 words. 4. If I struggle, give me a hint using a simple analogy, but don't give the answer immediately. 5. After 5 correct answers, give me a summary of what I've demonstrated understanding of. Explain in simple language. Don't label the question using which I can guess the answer.
Same shape, different topic. Use this one once your linked-list muscles are warm enough that recursion stops scaring you.
I have just learned about **binary search trees in C**. 1. Quiz me on this topic one concept with a sample at a time. 2. Ask a question that requires me tell the output of sample code 3. Keep your feedback under 100 words. 4. If I struggle, give me a hint using a simple analogy, but don't give the answer immediately. 5. After 5 correct answers, give me a summary of what I've demonstrated understanding of. Explain in simple language. Don't label the question using which I can guess the answer.
The two prompts share a skeleton on purpose. Once a quiz format works for you, swap the topic name and the prompt is reusable for any data structure you study next — stacks, queues, hash tables, heaps, graphs.
The prompts are short by design — they describe a behavior, not a curriculum. A few small habits make them much more useful in practice.