In would need to know which ship in particular you are referring to; but I can say that ships are generally powered by some sort of fuel and electricity.
Those resources can be converted into whatever type of power is needed.
sound energy and chemical energy
Electricity to run the dishwasher. That electricity can be generated by coal, solar, gas, or hydro power.
Nuclear power, atomic power used to be the term used but is now not used so much.
Kinetic energy.
Previous to the invention of steam power - wind power was the most common energy used to sail a ship. This worked by catching accelerated air within the sails foil and thereby pushing the ship along.
The energy used is electricity.
Electrical energy
The generator on a ship is used to create power to run many things. On large ships like a cruise ship, the generators allow power to everything from televisions to the casino machines.
A motor is used to power a windmill.
Generators create the electrical energy used on a cruise ship. Engines create the energy to propel the ship.
energy
Renewable. It uses the movement of the oceans to generate electricity when it is used for power.
Watts. Also for any other type of power (energy / time), that is, for transfer of energy that is not electrical in nature.
Gasoline is used for the energy to power a car.
Those resources can be converted into whatever type of power is needed.
The energy used to power a computer is Electrical Energy.