Well, you have rocket engines and jet engines which aren't internal combustion engines, and various types of internal combustion (Otto cycle -- what you probably have in most cars, Diesel cycle like...
both petrol and diesel are i.c. engines, being that the energy is created inside the cylinder (internally) by burning the fuel therein, as compared to say steam engine which creates energy source...