GE Vernova Interview Question

What can GPIO pins on a RaspberryPi be used for?