Context: The passage below describes an experiment. Read the passage and think about the variables that are described.

Harold was baking cupcakes for his stepfather's birthday. Harold wondered whether the volume of a cupcake would be affected by the type of flour in the batter.
Harold bought three types of flour and made three batches of cupcakes. He followed the same recipe for each batch, except for the type of flour used. He made one batch using whole wheat flour, one batch using cake flour, and one batch using buckwheat flour. After all the batches had baked and cooled, Harold measured the dimensions of each cupcake to calculate its volume.
Hint: An independent variable is a variable whose effect you are investigating. A dependent variable is a variable that you measure.
Figure: cupcakes in a pan.
Which of the following was a dependent variable in this experiment?
A. the type of flour used
B. the volume of the cupcakes
Determine the correct option from the provided choices and reply with its corresponding letter.

B