Multiple choice c

What is the role of variables in programming languages:

  1. Perform standard functions like printing to the screen

  2. Data storage

  3. Both correct

  4. Both wrong

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

Variables are named memory locations used for data storage (B). They do not perform standard functions like printing; that is the role of functions/libraries.