[tex]{ \qquad\qquad\huge\underline{{\sf Answer}}} [/tex]
Here we go ~
Value of g (x) is -2, when :
[tex]\qquad \sf \dashrightarrow \: - 2.5 < x \leqslant - 1.5[/tex]
And since -2 lies in this range of x,
[tex]\qquad \sf \dashrightarrow \:g( - 2) = - 2[/tex]
Value of x is -1, when :
[tex]\qquad \sf \dashrightarrow \: - 1.5 < x \leqslant - 0.5[/tex]
And -0.5 falls in this range, hence
[tex]\qquad \sf \dashrightarrow \:g( - 0.5 ) = - 1[/tex]
Next, The value of x is 0 when :
[tex]\qquad \sf \dashrightarrow \: - 0.5 < x < 0.5 [/tex]
But, it isnt equal to 0.5, since there is open interval at both extremes.
Next, Value of x is 1, when :
[tex]\qquad \sf \dashrightarrow \:0.5 \leqslant x < 1.5[/tex]
And since it also has the value 0.5 included in it,
[tex]\qquad \sf \dashrightarrow \:g(0.5) = 1[/tex]