Check your understanding of the previous reading: reading and writing variables, and the vocabulary used to describe it.

Question 1

Variables change their value over time according to the instructions in a program.

Select one answer, then check.

  • Correct. Each assignment statement that runs can give a variable a new value, so a variable's value changes over the course of a program.
  • Not quite. Every time an assignment statement runs, the variable's value is updated — so a variable's value does change as the program runs.

Question 2

Label each of the following as a "Write", a "Read", or "Read and Write" — for the variable x specifically.
x = 0
print(x)
y = x + z
x = x + 1
x == 1

Question 3

For each word, choose the synonym category it belongs to.
Set
Define
Change
Store
Use
Load
Increment
Create