You do not have to answer any questions. You can say - "I do not want to talk to you," and walk away calmly. If you are not comfortable with this, you can ask if you are free to go. If the answer is yes, you can consider just walking away. If the officer says that you are not under arrest but you are not free to go, then you are being detained. Do not run from the officer.
Keep your hands where the police can see them. You must show your driver's license, registration, and proof of insurance if you are asked for these documents. Officers can also ask for you to step outside the car, and they may separate passengers and drivers from each other. However, no one has to answer any question. The police cannot search your car unless you give them your consent, or unless they have "probably cause" to believe that criminal activity is taking place, that you have been involved in a crime, or that you have evidence of a crime in your car.
The officer must advise you of your constitutional rights to remain silent, right to an attorney, and to have an attorney appointed if you cannot afford one. Do not tell the police anything except your name, and ask to see a lawyer immediately.
No. If you are arrested, you do not have to answer any questions or volunteer any information. Ask for a lawyer right away. You should always talk to a lawyer before you answer any question.
Write down the officer's badge number, name, or other identifying information. You have a right to ask the officer for this information. Try to find witnesses and their names and phone numbers. If you are injured, seek medical attention and take pictures of the injuries. Call a lawyer or contact your local ACLU office. You should also make a complaint to the law enforcement officers responsible.