Cognizant Interview Question

Difference between function and procedures. Types of cursor, exception