When browsing Bulbapedia, I have noticed that some Pokemon with alternate forms have different move learnsets depending on their form.
One such example is Hoopa. Hoopa Confined learns Phantom Force at level 35; Hoopa Unbound does not learn anything at that level. At level 46, Hoopa Confined learns Zen Headbutt, but Hoopa Unbound learns Knock Off. Then at level 55 Hoopa Confined learns Shadow Ball, while Hoopa Unbound learns Dark Pulse. Finally, only Hoopa Confined learns Nasty Plot at level 68.
Another example is Deoxys. I assume there are also others.
What happens when Pokemon that knows move exclusive to one form changes form? In example above, if my Hoopa Confined knows Phantom Force and Zen Headbutt, can it still use it when it changes form to Hoopa Unbound?
Is the answer the same for all Pokemon with different learnsets for different forms, or are there exceptions?