When a user visits a URL in a Next.js app, the framework checks if the route exists. If it does, Next.js renders the matching page component. If the route does not exist, Next.js renders the custom 404 page defined in not-found.js. This page usually shows a message like '404 - Page Not Found' to inform the user. The code example shows a simple React component for the 404 page. The execution table traces requests to different URLs, showing which component renders and what the user sees. Variables track the requested route, whether it exists, and which component is rendered. Key moments clarify why Next.js renders the NotFound component for missing routes and how to customize the 404 page. The visual quiz tests understanding of which component renders for given routes and how adding pages affects route existence. This helps beginners see how Next.js handles not-found pages step-by-step.