I lived (and paid taxes) in California for a couple of years until end of march 2017. TurboTax already knows this -- I entered it before.
These are questions that are being asked for the California return.
When you are asked those two questions, they are asking if you moved to California prior to 2017 or did you move to California in 2017.
You are also being asked if you previously moved out of California. In other words, have you moved out of California prior to 2017 (multiple periods of residency in California).