Those kind of questions are not to be expected in the real exam but they are d**n good exercises for learning how to analyze code. If the exam pops up a loooooong code snippet like this one, just remember that there is a trick somewhere, that the loop only executes one or two times due to some obscure condition and the whole analysis gets easier. Do not be impressed by the length of the code, but learn how to decipher it quickly and efficiently. That way you may gain minutes instead of losing them