Any decent PPL textbook (eg TT) will give you a certain amount of relevant background knowledge. Couple that together with actual flying experience and instruction and you should have everything you need in practice to know the rules and stay legal.
As for the exam, I'd suggest the PPL Confuser and probably not much else.