Answer:
KI
Step-by-step explanation:
From the question, we can see that a qualitative analysis of the compound shows that it has a lilac flame colour. The lilac flame colour corresponds to the potassium ion (K^+).
Again, the test of addition of HNO3(aq) and AgNO3(aq) to a solution is a test for halogens. If the result is a green precipitate, then the ion present is the iodide ion (I^-).
Hence, the compound must be KI.