Seliwanoff's test is used to distinguish between ketoses and aldoses in carbohydrates. It is based on the reaction of ketoses with resorcinol in concentrated acid to produce a cherry-red color, while aldoses do not give this color change. This test is particularly useful in differentiating fructose (a ketose) from glucose (an aldose).