Sollicitatievraag bij Tata Consultancy Services

what is the difference between function and procedure?