The correct option is A Violet light
The red light has a less refractive index. So, the lateral displacement is less. The violet light has a more refractive index. So, the lateral displacement is also more. Therefore, on passing through the glass slab, violet light will have more shifting.