VXL Software interview question

what is difference between functions and stored procedure?