S01E17 — Ghost in the Machine

When the crew gets trapped in the holodeck by a mysterious malfunction, they aren't sure what's programmed or what's real.