Correct me if I'm wrong, but without motive does a police officer have the right to ask for your license?Yes, Sir is the only proper response. You can joke with him after you show him your license.
Not that I would resist much, but I would ask if he had probable cause. Wouldn't that be like pulling over vehicles just to make sure someone has a drivers license?