Step 1: Greatest possible diameter.
The hemisphere is placed on the top face of the cube (a square of side $14$ cm). For it to fit exactly, its circular base must be inscribed in the square. Hence the largest possible diameter equals the side of the square:
\[
\boxed{\text{Greatest diameter }=14\text{ cm}}, r=\frac{14}{2}=7\text{ cm}.
\]
Step 2: Exposed surface area.
Exposed parts: (i) Curved surface area (CSA) of the hemisphere $=2\pi r^2$, (ii) Five faces of the cube (all except the top, which is covered).
So,
\[
S=2\pi r^2+5\cdot(14)^2
=2\cdot 3.14\cdot 7^2+5\cdot 196
=2\cdot 3.14\cdot 49+980
=307.72+980.
\]
\[
\boxed{S=1287.72\ \text{cm}^2}.
\]


Find the unknown frequency if 24 is the median of the following frequency distribution:
\[\begin{array}{|c|c|c|c|c|c|} \hline \text{Class-interval} & 0-10 & 10-20 & 20-30 & 30-40 & 40-50 \\ \hline \text{Frequency} & 5 & 25 & 25 & \text{$p$} & 7 \\ \hline \end{array}\]