(a)Formed at earth's surface by the accumulation and cementation of fragments of earlier rocks(b)Due to change in temperature,sediments gets deposited(c)Melting of rocks(d)Forms through the cooling and solidification of magma or lava.