In the above figure, there are two glass slabs of same refractive index. Hence, AB will be parallel to EF.
True
Here, incident ray and emergent ray are in the same medium i.e. air, so, AB will be parallel to EF.
If the medium is different around the glass slabs, incident ray and emergent ray will not be parallel.