One input terminal of high gain comparator circuit is connected to ground and a sinusoidal voltage is applied to the other input. The output of comparator will be
a sinusoid
a full rectified sinusoid
a half rectified sinusoid
a square wave
plz explain why it is a square wave