Answer the following question, with explanation first.
Which of the following sentences is nonsensical?\nOptions:\n- Sentence A: "The dog likes wagging its tail."\n- Sentence B: "The dog likes to do his homework."\n

Sentence B
Dogs may be intelligent, but they can't do tasks a youngster undertakes as part of their learning.

.

The final answer: Sentence B