Multiple choice technology programming languages

What is the main function of any variable ?

  1. To add numbers together

  2. To keep track of data in the memory of the computer

  3. To print words on the screen

  4. To write Java

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Variables exist to store data in memory, allowing programs to keep and manipulate values. The other choices describe specific operations (adding, printing, writing code) that are not the fundamental purpose of variables.