A computer program is a collection of instructions that can be executed by a computer to perform a specific task.