(b) write its truth table and (c) give the output waveform.