Question: what questions to ask when buying a mountain bike?
Answer: What is my style of riding? Downhill, X-country, Enduro, Racing - there are many different bikes for different styles!
Do I want a hard tail or a full-suspension? ... 
Do I want an aluminum frame or a carbon? ... 
What wheel size do I prefer? ... 
How much travel do I want?