We are given the set {-2,-1,0,1,2} and the definition of piecewise function as follows
We only need to calculate the values of the function over the given set and then plot them. Note that as -2 and -1 are less than 0, if we want to calculate the value of f for these values, we should apply the first row of the definition of f. So we have that
when x=0 we are given the explicit value of the function. That is
Note that as 1 and 2 are greater than 0, we use the last row of the definition of f. That is, we output the same value as input. So we have
we collect this information on a table. So we get
x f(x)
-2 -3
-1 -3
0 -1
1 1
2 2
This can be summarized on the pair points (-2,-3), (-1,-3), (0,-1), (1,1) , (1,2).
If we plot this on a graph, we get
which corresponds to option C