Explanation: "Towards" is used to indicate direction or movement in the direction of something. In this context, it conveys that James is walking in the direction of the school. The other options don't fit well in this sentence:
(A) "to" is a preposition, but it doesn't convey the sense of ongoing movement towards the school.
(C) "off" doesn't make sense in the context of walking towards the school.
(D) "through" indicates movement within or into, which is not the intended meaning here.
Therefore, (B) towards is the correct choice.
Doubts & discussion
Not sure why the answer is B? Ask here and get an explanation.