In what way – by performing mechanical work or by heat transfer – the internal energy of the part changed

In what way – by performing mechanical work or by heat transfer – the internal energy of the part changed:
a) when it is heated in an oven;
b) when drilling a hole in it;
c) when it is rapidly cooled in water?

a) heat transfer: b) mechanical work: c) heat transfer.

Remember: The process of learning a person lasts a lifetime. The value of the same knowledge for different people may be different, it is determined by their individual characteristics and needs. Therefore, knowledge is always needed at any age and position.