Red litmus paper is used to test an alkaline/base. When a red litmus paper is immersed in a base or alkaline, the red litmus paper turns blue indicating the given solution as alkaline/base.
Bases are ions that break up to form OH− (hydroxide) ions in water. The greater the concentration of OH− ions, the stronger is the base.
KCN,K2CO3,LiCN will give basic solution as they give strong base in solution.