There are several ways to predict the product in inorganic reactions.
Look at the compound in the reaction and write down its oxidation state. The compound with the highest oxidation state acts as an oxidising agent. In contrast, the compound with the lowest oxidation state acts as a reducing agent.
In some cases, elements try to achieve the most stable oxidation state. So, try to make the product in the most stable oxidation state.
Get command over the periodic table, electrochemical series, and solubility of compounds topics to predict the product in advance