Variables. An experiment generally tests how one variable is affected by another. The affected variable is called the dependent variable.