Let's put more details in the figure to better understand the problem:
Given:
A = Side of the cube = 4 cm
B = Diagonal of the base = √(4² + 4²) = √(16 + 16) = √(32) = 4√2 cm
Connecting sides A, B and C, it appears to be a right triangle. Thus, to find C, we will be using the Pythagorean Theorem.
We get,
Therefore, the measure of the red line segment is 4√3