While a police officer can ask you for your immigration status, no one is legally required to respond. Everyone has the right to remain silent when questioned by police, and this includes questions about immigration status. In fact, it is generally advisable to say nothing other than your name and address when questioned by police, as anything else you say could be used against you in court. The best way to proceed is to remain silent and to ask to speak to an attorney if you are arrested.