dr. Sanchez is creating a quiz for a history class It will have true or false questions. what kind of variable will be needed to record the students answers to the questions

The variable needed to record the students' answers to the true or false questions would be a categorical, or nominal, variable. This is because the answers can only be either "true" or "false", and cannot be quantified or measured.