Answer: (a) Closed pipe (b) Length = 0.6746 metres
Now we have to understand that an open pipe would have natural frequencies corresponding to N =1, 2, 3, 4 ..
but a closed pipe (closed at one end ofcourse) would have natural frequencies corresponding to N =1, 3, 5, 7 ..
So to determine if the pipe is open or closed we just have to see if the second natural frequency is twice the first (depicting open pipe) or thrice the first (depicting closed pipe).
Since 378 Hz = 3 * 126 Hz and similarly 630 Hz = 5 * 126 Hz
we know that N = 1, 3, 5 and so on
Hence it is a closed pipe.
Its given that these are the first three natural frequencies. So we can use the formula
frequency in Hz = (N * velocity of sound) / 4 * Length of the pipe
where N denotes the harmonic produced only for closed pipes
So we have
126 = (1 * 340) / (4 * L)
=> L = 340 / (4 * 126) = 340 / 252 = 0.6746 metres
(Be careful as this formula is valid only for the closed pipe)
The formula for an open pipe would be
frequency in Hz = (N * velocity of sound) / 2 * Length of the pipe