, evildictait​or wrote

Hence, if anyone posts "The answer to Q is X" on the Internet, then typing "The answer to Q" into Google yields X - an answer that gives full marks in the exam.

That would only be true if the question was a multiple choice one.

Just because you have the answer, doesnt mean you get the credits.

The approach to coming to an answer is demonstrates if you have learned and understand the material, not simply propping up the x = 3.