How can floods be prevented?
Both A & B
Dams can store excess water and planting trees can help absorb water which will prevent floods or reduce the damage.
Build flood-proof structures. Install "check valves" in sewer traps to prevent flood water backups. Seal walls in basements with waterproofing compounds.