Solution:
concept - All alkali metals (Lithium, sodium, potassium, Rubidium and Cesium) are soft and can be cut by a knife.Alkali metals react with oxygen to produce their oxides.
Lithium oxide is the lightest alkali metal oxide and a white solid.
Sodium oxide is a white solid
Potassium oxide is a pale-yellow solid.
Rubidium oxide is a yellow solid.
Cesium oxide is a yellow-orange solid.
Now, a soft metal which gives violet flame test is potassium, K.
Hence, the correct answer is 3.