For the solution, click "Read More" below.
If the cube rolls without changing directions, then four faces will touch the ground, and so the pattern that the cube leaves behind will repeat after four squares. In this problem, two of the trails have a repeating pattern of 3 squares and are therefore not possible.
In the diagram below, going from top to bottom, the trails are:
Possible, impossible, possible, impossible.