The correct option is B C5H12
Compound 1:
n = 5, substitute it into the general formula;
CnH2n+2 = C5H12
Hence, it is an alkane.
Compound 2:
n = 4, substitute it into the general formula;
CnH2n+2= C4H10 ≠ C4H8
Hence, it is not an alkane.
Compound 3:
n = 3, substitute it into the general formula;
CnH2n+2 = C3H8 ≠ C3H4
Hence, it is also not an alkane.
Compound 4:
n = 5, substitute it into the general formula;
CnH2n+2 = C5H12 ≠ C5H7
Hence, it is also not an alkane.