CivilSoft interview question

What is the difference between stored procedures and functions