When it is shined at the mirror, it will simply reflect, and go in a straight line to the next point it will encounter.
When shined at the glass box, the laws of refraction and dispersion will work to create a displacement of the light once it hits the first wall, but then it will replace itself coming out via the second wall
for the prism, it will refract into all colors of the rainbow because of how the wavelengths separate.