Learn

From clicking our mouse to turning up the volume of the speakers during our favorite song, we are constantly giving our computers input. We can think of input as how we as people physically interact with computers. We give our computer commands by interacting with various physical sensors (like buttons) which then get turned into data for our computer to process.

So how does a simple act such as clicking a mouse become the catalyst for a computer to carry out an action? First, we need to establish a connection from our input device to our computer through a physical port, which is usually attached to the computer’s motherboard.

The input device’s job is to detect and report any type of event; for example, a mouse can sense the action of being clicked. Once an event is received by the input device, it reacts by sending information to the CPU. In order to properly “speak” with the CPU, information needs to be communicated using binary code which are instructions composed of 0s and 1s.

Once the input is converted into binary, it is sent to the CPU to be processed.

Instructions

Click Next when you’re ready to go to the next exercise.

Take this course for free

By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.
Already have an account?