Which of the following results in an ordinary gain or loss?

A. Sale of a machine at a gain
B. Sale of stock held for investment
C. Sale of a $1231 asset
D. Sale of inventory
E. None of the choices are correct