Click on the ellipsis (three dots) at the right end of the exercise you like to exclude from the score computation and select “configure”.
Select "Do not include exercise's score in assignment's score" .
This will allow the system to exclude the chosen exercise from the score computation of the assignment.