The first sentence is grammatically correct, but somewhat formal/old fashioned. It might be used, but in normal conversation you would say 'There's a beautiful view from this window."
I agree with Francois's suggestion for the second sentence, "Which colours does this rainbow consist of?", and that your last sentence is good.