The right option is; C.) sedimentary
If you examine a rock sample and observe fossils in it, the sample represents sedimentary rock. Sedimentary rocks are rocks that are formed from pre-existing rocks or subsequent accumulation of organic particles (remains of plants and animals) on the floor of water bodies at very low temperatures and pressures. The process of formation of sedimentary rock allows organic material preservation and thus, the formation of fossils. Examples of sedimentary rocks include; dolomites, chert, coal and limestone.