As the above commenter mentioned, the "legally correct" answer is typically not the most expedient.
Even if the cop is a dick, they are almost always mostly concerned about doing their job more than pinning 10,000 trumped up charges on you. They are there to meet their quota and do a cursory poke around to catch people carrying a trunk full of heroin.
Really what you should do is keep your hands at 10 and 2 until told otherwise, be polite and pleasant, and comply with all requests promptly with a "yes, officer". Of course, the lemmy edgelords will say that you should never tell an officer anything because "muh rights" - and sure, you have the right to make the officer's job as hard as possible and piss them off to no end. But the officer has quite a bit of leeway as to how they might proceed in your interaction - and making their life harder probably wont endear them to you