Computer instructions may refer to any of the following:
1. When referring to the computer processor, an instruction is a segment of code that contains steps that need to be executed by the computer processor. For a computer to do something, instructions have to be given to the computer processor so it knows how to do what it is being asked to do.
For example, if you were to ask the computer to draw a square, it would need a set of instructions on how to draw the square, so it can complete the task. In Logo, a user could complete this task by giving the computer the below set of instructions. The picture to the right is an example of the results.
forward 100 right 90 forward 100 right 90 forward 100 right 90 forward 100
How does a computer get instructions?
A computer is given instructions by a human using a keyboard or other input device. To interpret these instructions, the computer uses an operating system or software that is also programmed by a human to translate the user commands into something the computer can understand.
2. Computer instructions are a set of steps or documentation that includes information on how to operate, perform, or otherwise maintain particular computer software or hardware. If a program or hardware device includes an instruction manual or online instructions, it is highly recommended that these be reviewed before asking questions.
3. Instructions are also a portion of programming that prompts a computer to execute a function. These instructions are stored on the hard disk drive or other storage device and are not executed until they are run by the user.