how does sediment form?

A. loose material is compacted by pressure
B. weathering breaks down rocks and other materials
C. molten rock cools below earths surface
D. chemical changes cause sediment to cement together