Farmyard is a yard surrounded by farm buildings. The cows were enjoying the sunshine and solitude by the barn; they were at farmyard.
This justifies what answer for what question? Q & A: 
The cows were enjoying the sunshine and solitude by the barn, where were they?
Options:
- fairgrounds
- countryside
- on the moon
- farmyard
- give birth to dogs
farmyard