A CD-ROM (Compact Disc Read-Only Memory) is a type of optical disc used to store digital data. It is read…