Answer:
D) The dog wanted—to go outside—as soon as her owner got home from work.
Step-by-step explanation:
Dashes are used to "set off an idea or an appositive within a sentence." It is a punctuation mark used to "set off an idea within a sentence". They are used to mark the "interruption of a sentence".
With these options, only option d makes sense. All the other answer choices are grammatically correct because the dashes create an interruption in the sentences.
For the last option, it's the same idea. It talks about a dog that wanted to go outside when her owner got home.
Hope this helps!