Asking questions is an essential part of police investigation. In the ordinary sense a police officer is free to ask a person for identification without implicating the Fourth Amendment.
I went to dance classes from 9 in the morning until 1, then to school from 3 to 10 at night, always under the threat that if I failed a single course I could forget about dancing.