Cognizant interview question

Explain stored functions in SQL.