This expression comes from the custom of sailing ships that would fly their colors or put up their flags and pennants if they wanted to be identified when passing other ships at sea. Today this expression is used to refer to someone who has passed a test or some other type of trial with a great margin. A nautical term that has now become part of everyday language
Passed with flying colors
Previous: Overwhelm
Next: Perks