Failed a test, class, or other examination; did not achieve a passing grade.
From American slang 'flunk', possibly from Germanic 'flank' or related to 'funk' (to avoid). It became popular in American schools in the 1800s.
Try Another Word