Compulsory courses refer to the courses that college students must take, which are generally divided into professional compulsory courses and public compulsory courses. Compulsory courses must be required to pass. If you fail, you need to make up the exam. If they fail, they must take it back. If you haven't taken required courses before graduating from college, you won't get a diploma and a degree certificate.
Elective courses refer to courses that universities can choose to study, which are also divided into professional elective courses and public elective courses. Elective courses are not as strict as compulsory courses. If you fail an elective course, you can make up for it by choosing credits from other elective courses.