Capgemini interview question

what is a cursor, index in SQL.