With a rectangular prism it doesn't matter which face you say is the base, your answer will turn out the same.
Let's say the bottom face is the base (the one it's sitting on):
If that is the base, then the prism has a height of 4.0 cm.