Activity Based Assessment > All mark entry bulk screen need to filter optional subject and restrict the mark entry for not assigned optional subject.
Also filter the subject list based on selected exam instead of class subject.