Question: is a square wave dc or ac?
Answer: Since its amplitude is varying with time, it can not be a dc signal, which is constant by definition. Hence it can be thought of as an AC signal. However, a true square wave is mathematical construct, severely discontinuous. ... A square wave is a model of a signal and not a real signal.