What is the appropriate domain and range of the line segment below?

Solution
The domain of a function is the set of all possible inputs for the function.
The range of a function is the complete set of all possible resulting values of the dependent variable (y, usually), after we have substituted the domain.
From the graph, we can easily see that;