The scene pictured is from Family Guy (Season 3, Episode 19: "Stuck Together, Torn Apart"), not Season 5, Episode 1 as the post caption claims.
In this scene, Peter Griffin attends a community college course, and when he hands in a blank piece of paper, the teacher tells him, "That was the test. You passed."