The formula sheet only gives the put call parity formula and so normally you would be expected to use this.
The only time you would use the other formula in the exam would be if the requirements actually gave it to you (you are certainly not expected to learn it). From memory this has only happened once, but if you are given this formula in the requirements then certainly do use it.