Which of the following sequences correctly shows the main steps a computer performs when running a program?
Think about when the computer saves data before working on it.
The computer first receives data (Input), then saves it temporarily (Store), processes it (Process), and finally shows the result (Output).
Imagine a computer program that takes a number as input, doubles it, stores the result, and then outputs it. If the input is 7, what is the output?
input_number = 7 stored_value = input_number * 2 output = stored_value print(output)
Multiply the input by 2 before output.
The program doubles the input 7, so 7 × 2 = 14, which is stored and then output.
Which component of a computer is primarily responsible for storing data temporarily during processing?
Think about where data is kept while the computer is working on it.
Memory (RAM) temporarily stores data and instructions while the CPU processes them.
Which of the following pairs correctly matches an input device with an output device?
Input devices let you send data to the computer; output devices show or produce results.
A keyboard is used to input data, and a monitor displays output. Other pairs mix input and output incorrectly.
A computer program receives the input number 5. It stores the number, adds 3 to it during processing, then outputs the result. What is the output?
input_value = 5 stored_value = input_value processed_value = stored_value + 3 output = processed_value print(output)
Add 3 to the stored input before output.
The program adds 3 to the stored input 5, resulting in 8, which is then output.