Let, each of the container's height is h cm.
A has circular cross section whose radius is 2 cm.,
Therefore, A's volume = π * (2)2 * h
= 4 * 22/7 * h
= 88/7 * h
=12.57h
B has a square cross section with side of 4 cm,
Therefore, B's volume = 4* 4 * h
= 16h
So, 16h > 12.57h
B's volume > A's volume
We know that,if a container is wider than another container, then it contains more water. And if the same amount of water is poured, in the less wider container the water will rise to greater heights.Here 1 litre water is poured, and both of their height is same, so in less wider container water rise to greater heights.