Machine codes, also referred to as binary or object codes, are the ones and zeros that make up programs. The code is stored on a data storage device such as RAM or ROM and is used by the CPU to execute the program.