Explanation:
the domain is the interval or set of the valid values of x.
the range is the interval or set of the valid values of y.
the domain here is 0, 1 and 2.
to find the range we just have to try all 3 values of x and check the results :
x = 0
y = 0 + 1 = 1
x = 1
y = 1 + 1 = 2
x = 2
y = 2 + 1 = 3
so, the range is 1, 2, 3