Capgemini Interview Question

what is a cursor, index in SQL.