From the graph we can see that the value of y when x is less than 0 is y = 0. Also we can see that the value of y when x is bigger than 0 is y = 2
The thing we need to look at now is the circles in x = 0. The filled circle is in y = 0, which implies y = 0 for x less or equal than 0.
Thus the answer is:
Option B:

Please check the solution I gave in the Answer Tab. Do you understand what I did?
Second part of the question:
Since the function is defined for all values of x, the domain are all real numbers. In interval notation,
Option B:

Third part of the question:
The range are all the values of y that the function takes. Since the function has only 2 values of y: 0 and 2, the range is:
