Question from the Machine learning - Fundamentals test

What are the differences/similarities between a loss function, an error function, and a cost function?