Domesticated animals raised in an agricultural context to provide labor and generate commodities such as meat, eggs, milk, fur, leather, and wool are referred to as livestock.
An enclosure containing pens, sheds, and other structures connected to a slaughterhouse, railroad, market, or another facility for temporary habitation of cattle, sheep, swine, or horses
A large enclosed yard, usually with pens or stables, where livestock, such as cattle or pigs, are kept temporarily until killed, sold, or moved somewhere.
Therefore the correct option is option B this is where livestock is penned.
For more information about stockyard refer to the link:
https://brainly.com/question/23266861