For the same peak value which of the following wave will ‘have the highest r.m.s. value?
A. square wave
B. half wave rectified sine wave
C. triangular wave
D. sine wave