Extrusive igneous rocks are formed by magma that has ... It often contains fossils and it reacts with acid giving off a gas. These features classify limestone as a sedimentary rock.