Step 1: What stays fixed:
The battery is removed, so there is no path for charge to enter or leave. The charge $Q$ is constant. The initial values are $Q = CV$ and $U = \frac{1}{2}QV$.
Step 2: Use the electric field:
The field in the gap is $E = \frac{\sigma}{\varepsilon_0}$ before the slab. With the slab filling the gap, the field is reduced to $E' = \frac{E}{K}$, as the induced charges on the slab oppose the field. The charge density $\sigma$ on the plates is the same.
Step 3: Voltage ratio:
The voltage is the field times the plate separation $d$, and $d$ does not change:
\[ V' = E' d = \frac{Ed}{K} = \frac{V}{K} \]
So $\frac{V'}{V} = \frac{1}{K}$.
Step 4: Energy ratio:
The energy is $U = \frac{1}{2}QV$. The charge is the same and the voltage is $K$ times smaller:
\[ U' = \frac{1}{2}QV' = \frac{1}{2}Q\frac{V}{K} = \frac{U}{K} \]
So $\frac{U'}{U} = \frac{1}{K}$.
Step 5: Sanity check:
Since $K > 1$ for any dielectric, both ratios are less than 1. This is as expected.
Final Answer:
Both ratios are equal to $1/K$.
\[ \boxed{\frac{V'}{V} = \frac{U'}{U} = \frac{1}{K}} \]