This symbol and notation juggling produces the right answers in the context of the questions - so the advice that has been given is going to be helpful in passing written theory papers ... but I find it sad that such rote methods are learned - and sufficient - to pass exams, divorced from any real musical purpose.
It is not even a sound general method - you can't use it outside of the confines of an elementary exam - because you have to take on trust that the passage in question is in a single key (or indeed in any key at all). What if it modulates, or if it is ambiguous, hovers between tonalities, or is atonal?
What about the
sounds that the symbols represent? If you PLAY (or sing) an excerpt then you will HEAR where it is headed, which note SOUNDS like the tonic, and whether it is major or minor.
It is like doing arithmetic by rules with no grasp of geometry or of different magnitudes or any skill at estimating, or like those characters in "The Big Bang Theory" trying to relate to other people through an intellectual understanding of the transactional rules of social interactions.
Knowing the underlying the theory and notation of tonality is, I do not dispute, necessary for a deeper understanding of Western music - on which matter the standard theory grades are in any case badly deficient as they do not cover the most basic question of all - that is why, from the infinity of possible tones, Western music has settled on such a small sub-set?
The whole syllabus is dry as dust and needs an inspired teacher to bring it to life and relate the theory to the development and history of our music. Or - if you are teaching yourself, then you need to read widely outside the narrowly theoretical, outside what is strictly necessary to pass an exam.
Maybe it is necessary to go through a stage of doing problems like this by rote before understanding arises? Can a more experienced teacher tell me if this is so, and if it is deliberate?
But the symbols of music are not like the symbols of mathematics. In maths you represent a problem in symbols - then by manipulating the symbols according to rules - with no necessary understanding of the intermediate stages you can generate new results - which can be interpreted back into useful relationships. In other words they are there to save you effort. Having represented an idea in symbols and rules you no longer have to think much about it.
The symbols of music are different. They represent the ideas of the composer embodied in sound. The choice of tones and relationships chosen by our culture may ultimately be mathematical, but the language of music is closer to poetry than to mathematics.