The correct option is B Allows light to enter to form the image
A pinhole camera is a simple camera without a lens but with a tiny aperture,(aperture is nothing but the hole here) a pinhole – effectively a light-proof box with a small hole in one side. Light from a scene passes through the aperture and projects an inverted image on the opposite side of the box.