Reasoning from the tests
- 2,4-DNP positive (A, B, C): all three contain a carbonyl group, >C=O.
- Tollens' positive (A, B): A and B are aldehydes. C gives 2,4-DNP but not Tollens', so C is a ketone.
- Iodoform positive (B, C): both contain a CH3CO– group.
- The only aldehyde with CH3CO– is ethanal, CH3CHO (2 carbons). So B is ethanal and is the one two-carbon compound.
- The three-carbon methyl ketone is propanone, CH3COCH3 = C.
- A is a three-carbon aldehyde without CH3CO–: propanal, CH3CH2CHO.
- D gives CO2 with NaHCO3, so it is a carboxylic acid; it must have three carbons: propanoic acid, CH3CH2COOH.
| Compound | Structure | Name | Class |
|---|
| A | CH3CH2CHO | Propanal | aldehyde |
| B | CH3CHO | Ethanal | aldehyde (with CH3CO–) |
| C | CH3COCH3 | Propanone | methyl ketone |
| D | CH3CH2COOH | Propanoic acid | carboxylic acid |

Equations
Tollens' test (A, B), with R = C2H5 or CH3:
RCHO+2[Ag(NH3)2]++3OH−→RCOO−+2Ag↓+4NH3+2H2O
Iodoform test (B and C):
CH3CHO+3I2+4NaOH→HCOONa+CHI3↓+3NaI+3H2O
CH3COCH3+3I2+4NaOH→CH3COONa+CHI3↓+3NaI+3H2O
Bicarbonate test (D):
CH3CH2COOH+NaHCO3→CH3CH2COONa+H2O+CO2↑