It's really time to stop considering degrees evidence of anything. Universities let students cheat, they let professors cheat. What does having a good degree really prove? Why does anyone still ask for one?
And no, Internet access is not the same as reading in a library. Academia is the quiet place we learn to ask questions.
And meet people who are really good at asking questions.
It's not like heap allocators are hard to come by, there's one right there in the Linux source code.
I've had plenty of courses where professors were afraid of answer sheets leaking out because they intended to use the exact same tests and practicals the year after. Those were always the courses where someone had a copy of last year's answers that was passed around between groups of students. You can't rely on secrecy to save yourself from having to come up with different tests if you hand out a piece of paper to 50 or even 300 people.