The graph of function f(x) is shown below. At which value of x is the slope of the tangent line to the curve equal to 0?

The slope of the tangent is equal to zero when the derivative is equal to zero, in other words when the function attains a local extremum (maximum or minimum)
So we have to ask ourselves, at which "x" value does f(x) admit a maximum or minimum.
From the graph we can tell that it is at the point of abscissa 2