The OP's question was answered by Hogdogs and HKmp5 a year and a half ago.
Do they, and do they have a right to ask you about a gun?
You have no duty to inform an officer that you're armed. They do have a right to ask, as they've got a right to ask anything they want.
In the future, please start a new thread, rather than forking off an old one.