Question: when did rabat become the capital of morocco?
Answer: 1912