LPL Financial Interview Question

When do you use Logistic Regression versus Linear Regression