The graph of a function, given in a coordinate axis, is (the set of) all the points (x, y) which appear on the coordinate axis.
The Domain is the set of all first coordinates, the x'es.
The Range is the set of all the second coordinates, the y's.
1.
We can see the points (-2, 0), (-1, 1) and (2, -1)
Domain={-2, -1, 2} Range={-1, 0, 1}
2.
We see that x can be any value such that -1<x≤1
and y can be any value such that -1≤y<2
so
Domain: x, such that -1<x≤1
Range: y, such that -1≤y<2