UCLA interview question

How would a pull up resistor be used in a system?