Ask your AI Ask your AI to turn this code into a guided bug-finding exercise.
Claude ChatGPT I am reading "Which statement about a page fault is correct?" on CodeWiki (https://codewiki.com/practice/mcq/foundations/virtual-memory/page-fault-meaning/).
Context (verbatim from the page):
"""
Which statement about a page fault is correct?
Every page fault reads data from a physical disk.
Every page fault terminates the process.
The kernel may resolve a permitted access by installing a mapping and retrying the instruction.
A TLB miss and a page fault are always the same event.
"""
Introduce three subtle bugs into the example above and let me find them. Reveal each answer only after I have guessed.
Answer in English. Keep code examples in CS foundations. Where you are unsure, say so.