The question as posed says Query B works (in spite of the missing quote). Assuming the missing quote is a misprint, are we to believe that Query B works without the modification given for Query A?
If Query B also requires a CAST, then none of the answers fit the question. It becomes a trick question but not for the reason in answer 3, so all answers are wrong.