The assessment home page has an export results to CSV button. Clicking the button will open an options screen where you can select what you want to export in the CSV file.
From the options screen, you can choose to export only the exercise marks, or the student status information about the exam. Such as whether the student submitted the assessment or has been marked, the IP address they used to complete the exam (for auditing purposes) and so on.
Marks and comments for individual exercises can be exported from the screen as well. Once you have selected which fields you want to export, click on the Export button. Your browser will prompt you to download the CSV file.
Read next: Releasing marks to students