Software as a computer program. A computer program consists of a sequence of instructions, which is interpreted and executed by a processor or a virtual machine. In a correct and functional program, this sequence follows specific patterns that result in a desired behavior.