Answer
See below.
Work Step by Step
According to the function's definition, the domain is all real numbers (because it is defined for all rational and irrational numbers) and the range is $\{1,5\}$ (because these are the only values the function can take on).