I'm not saying that it would be unrealistic in any circumstances, just that it seems like Ferris's lack of composure is being portrayed as inappropriate based on on Stanwick sternly asks her if there is something on her mind. It reminds one of those stereotypical boot camp scenes in war movies where the soft, undisciplined recruits react immaturely to something a drill sergeant says and they get chewed out for it. It seems like odd behaviour for an officer, a captain in a formal setting as it appears so far. Now, we have no idea how the scene will play out in the film, what the actual context is, so all of this is extremely premature. I wouldn't necessarily consider the scene misogynist or sexist, but the exchange does seem off to me. It might just be poor performances or poor writing.