Advantage of Arduino

Could you please Let me know the different between sketch and HEX file

A sketch is your source code.
The hex file is the compiled version of your sketch, ie translated from C/C++ to machine code for the AVR processor.