Podcast
Questions and Answers
Which of the following best describes a variable?
Which of the following best describes a variable?
- A constant value that never changes
- A function that performs a specific task
- A conditional statement that controls program flow
- A container for storing data that can be assigned and reassigned (correct)
What is the purpose of a variable in programming?
What is the purpose of a variable in programming?
- To store and manipulate data (correct)
- To decrease program performance
- To confuse the user
- To make the code more complicated
Which of the following is an example of a variable?
Which of the following is an example of a variable?
- print('Hello World!')
- 2 + 2
- if x > 10:
- x = 5 (correct)
Flashcards are hidden until you start studying