It so much depends upon the circumstances and the individual. Even with the individual, it changes from circumstance to circumstance.
My daughter served as a legalman in the Navy, where she had significant contact with higher ranking officers. When this happened, she was a Petty Officer 2nd class (E-5). She was stationed in Djubuti.
While getting her lunch at the one and only galley on the base, she noticed an admiral and his aide, a useless Lt. Jg., show up, and was not announced. (Courteous thing for the admiral to do -- if he was announced everybody would have to stand and stop their lunch.) The admiral got into the shortest line, just like any other sailor.
My daughter, realizing the admiral was new to the base, went over to him and said, "Excuse me, Sir, but do you realize you're in the desert line?"
The admiral looked up at the serving table, said, "Crap," glared at the useless Lieutenant. My daughter said, "It's the line over there, but you should go to the front of the line."
The admiral responded, "No, thanks, I can wait like everybody else."
Later that day, when the admiral arrived at the command building, he was piped on board, attention on deck was ordered, and full military honors were rendered.
The individual and the circumstances and what impression is being created matters. There is no one answer.
Best of luck,
Jim Clark-Dawe