The Twilight Zone - Season 1 Episode 14 Examination Day
Overview: In the far future, twelve-year-old Dickie must pass the government intelligence test. He is very nervous about the outcome of the test but eager to show how smart he is. At the end his parents get the news - Dickie "passed" the test...but the government kills anyone who is too intelligent.