Infosys interview question

Explain cursor operations with all the steps