The correct option is A C7H16, C2H6
The general formula of alkane is CnH2n+2. Hence, the molecular formula of heptane and ethane will be C7H16 and C2H6 respectively.
Theory :
Straight chain alkanes :
Name Mol.Formula
Methane CH4
ethane C2H6
Propane C3H8
Butane C4H10
Pentane C5H12
Hexane C6H14
Heptane C7H16
Octane C8H18
Nonane C9H20
Decane C10H22