ParamInfo interview question

What is the difference between Function and Stored procedure?