sets of input conditions

How many different sets of input conditions will produce a HIGH out- put from a five-input OR gate?
B 3-6. Change the OR gate in Figure 3-52 to an AND gate. (a)*Draw the output waveform.
Draw the output waveform if the A input is permanently shorted to ground.
Draw the output waveform if A is permanently shorted to +5 V.