The salt of an alkali metal gives violet colour in the flame test. Its aqueous solution gives a white precipitate with barium chloride in hydrochloric acid medium. The salt is:
The salt gives violet colour in the flame test, which shows the presence of potassium ion (K+) in it. Further, the aqueous solution of salt gives white precipitate with BaCl2 in acidic medium, so it must contain sulphate ion (SO2−4) and the precipitate is of BaSO4.
Thus, the salt is K2SO4.