Answer :
This causes them to be different types. When sediment is compacted and cemented together, it forms sedimentary rock. When magma cools, it hardens to form igneous rock. ... They model the formation of sedimentary rocks using hard candy, and view a video showing igneous rock formation as magma cools.