LPL Financial interview question

When do you use Logistic Regression versus Linear Regression