Do Universities have a right to stop students from talking about questions on tests? This case in Canada was between students who were complaining about a professor and the school who claimed doing so was misconduct. The school lost because the punishment infringed on students' freedom of speech.

By this logic, does freedom of speech protect students from punishment if they were to release details of a test question while complaining about it in a similar manner? What legal right do universities have to mandate confidentiality of such things? (I hope this doesn't sound facetious)
From your link:


  Where a government-funded or affiliated entity such as a University attempts to limit the freedom of expression of its students it must carefully consider the students’ Charter right to freedom of expression, and ensure that any limitation is reasonable, justified and compliant with the Charter.


It seems like the difference between punishing people for sharing test questions and punishing them for criticizing professors is that one of these is "reasonable and justified," while the other isn't.