The trend toward online learning and assessment is seen as having greatly benefited higher education, especially during the COVID-19 pandemic. However, its effectiveness is seen to have a large impact on the students' performance. Hence, this study aimed to investigate the factors that affect students' cognitive performance during an extended period of online learning. The data were collected from one course (Electronics 2) offered to second-year students of the Diploma in Electrical Engineering (Electronics) for a period of four semesters: