Right choice is (a) at the top in
The best explanation: Mentioning the global variables at the top of an M-file allows the user to prevent any error rising to usage of the same variable unconsciously. If we declare it anywhere, it may so happen that we would need it at the beginning. Hence- it is plausible to declare it at the top of an M-file.