Pass with flying colors

Photo of a ship flying colors
To pass with flying colors means to perform very well in a test, challenge, or task.

The phrase comes from naval traditions, where a ship returning from a successful mission would sail with its flags - or colors - flying.

She studied hard for the exam and passed with flying colors.