Cognizant interview question

Difference between function and procedures. Types of cursor, exception