To find the domain of the function \( y = |x - 2| \), we first need to clarify what the function consists of and if there are any restrictions based on its definition.
The absolute value function \( |x - 2| \) is defined for all real numbers \( x \). There are no restrictions on the inputs, as you can substitute any real number into the expression \( x - 2 \) and take its absolute value.
Thus, the domain of \( y = |x - 2| \) is:
A. all real numbers.
Therefore, the correct answer is A. all real numbers.