Final answer:
According to the National Electrical Code, a receptacle is required at least every 30 feet in hallways to provide convenient outlets and prevent the hazards associated with long extension cords.
Step-by-step explanation:
The maximum length of a hallway without requiring a receptacle is subject to building codes, which can vary by location.
However, as per the National Electrical Code (NEC), which is widely used in the United States, a receptacle is required at least every 30 feet along the wall space of a hallway.
This is because long hallways are used for vacuum cleaners and other equipment that require electricity, and the NEC aims to ensure there are ample outlets to serve these needs without the use of extension cords, which could pose a tripping hazard or lead to electrical fires.