Notice that for the first altered function we have that:
Therefore the +7 would directly affect the x-values, so the graph would shift horizontally.
For the next function we have that:
Therefore the +7 would directly affect the y-values, so the graph would shift vertically.