What do CA Residency Information questions mean "Did you ENTER CA before" or "Did you LEAVE CA before"? I had visited family in CA for 6 years before becoming resident.

Is it asking whether the "entering" or "leaving" CA beforehand was with the intent to establish residence?  Really don't understand this questions.