My digital logic professor was so lazy he reused previous year homework questions on exams and exams were completely open notes.
The old questions were available with answers on old versions of the course website that were still online. Everyone just brought the answers to each exam.