Statement A: A gully trap accepts wastewater from baths, sinks, and washbasins via its top inlet. Foul water from courtyards or floors connects through the side inlet. This statement is accurate.
Statement B: Anti-siphon traps feature a narrower inlet waterway and a larger outlet. This design prevents the pipe from completely filling with water, thereby preventing siphonic action. This statement is accurate.
Statement C: Intercepting traps are situated at the junction of the house drain and street sewer. Their function is to prevent foul gases from the sewer entering the house drainage system. This statement is accurate.
Statement D: P-traps, Q-traps, and S-traps are designated by their shapes, which correspond to the letters P, Q, and S respectively. This statement is accurate.
\[\n\boxed{\text{All statements (A), (B), (C), and (D) are correct.}}\n\]