Editing because I think I misunderstood your question in my first reply.
Yes, that's reasonable. Technically you only need to find ##f(0)##, but enough information is given that you can find ##f(x)## for all ##x \in [0,1]##.
I take this to mean you want to set ##f(x) = 1## for all ##x \in [0,1]## and verify that it meets the conditions. And it does meet the conditions:
Assuming you know that a constant function is continuous, then you don't need to prove it again.
Yes.
However, all you have done is to show that the constant function ##f(x) = 1## satisfies the conditions. Can you prove that it is the ONLY function that meets the conditions? How do I know there isn't some other function with ##f(0) = 0## which works?
Indeed, you can answer this problem without even stating the values of ##f(x)## for ##0 < x < 1##. The key facts you need are that ##f## is continuous and that ##f## takes on only rational values. To do this, suppose that ##f(0) \neq 1## and look for a contradiction. Hint: there's a fundamental theorem about continuous functions that makes this a one-liner.