Data Device Interview Question

What does a resistor do?