A couple of years ago, I read a story about a professor of computer science, who showed his first semester students a few lines of code with a simple questions. I think it was something along the lines of this:
a = 5
b = a
a = b + 5
c = a + b
What is c?
And this professor argued, that this simple test is in some sense surprisingly reliable to check, whether a first semester student will be good at computer science or not. Sadly I cannot find any reference to this story anymore online.
Does anybody know about this story? Is it true? What was the exact code?
I am really sorry, if this is the wrong site for this kind of questions. I looked at different StackExchange websites and this seemed to be the best fit for my question.
=
as assign operator rather than equivalence. $\endgroup$