Anxiety for something like a test is normal -- since you can take the test away and the anxiety goes away.
If it's worse than that it could be depression, including things like panic attacks.
[1] https://www.mayoclinic.org/diseases-conditions/depression/sy...