A computer program is considered a set of instructions or code that directs a computer to perform specific operations or tasks. It is a sequence of computational instructions that a computer follows to solve a problem or carry out particular tasks to get specific results. Computer programs are written in programming languages and are executed by the computer's processor to produce the desired output. Additionally, from a legal perspective, a computer program is typically considered a literary work under copyright law because it is a set of written instructions in code.