Identify the device used as a spherical mirror or lens in following cases, when the image formed is virtual and erect in each case

Identify the device used as a spherical mirror or lens in following cases, when the image formed is virtual and erect in each case.
(a) Object is placed between device and its focus, image formed is enlarged and behind it.
(b) Object is placed between the focus and device, image formed is enlarged and on the same side as that of the object.
© Object is placed between infinity and device, image formed is diminished and between focus and optical centre on the same side as that of the object.
(d) Object is placed between infinity and device, image formed is diminished and between pole and focus, behind it.

(a) Concave mirror (b) Convex lens
© Concave lens (a) Convex mirror