LDR becomes necessary when op-amp is used as a:

Comparator

Inverter

Night switch

Rectifier