There was a dog, it was barking loudly.  James wasn't scared of it though, because it was confined.  Where might it have been confined to?
- backyard
- kitchen cupboard
- front door
- table
- park

The best answer is


backyard