From first law of thermodynamics, energy is conserved and only convert from one form to another. In thermodynamics we study about energy transformation. For example- Chemical energy released when a fuel like methane is burnt in air and this chemical energy may be used to do mechanical work like in a vehicle or may be used to provide electrical energy and so on.
Laws of the thermodynamics apply only when a system is in equilibrium or move from one equilibrium state to other. Hence, option (A) and (D) are the correct answer.