I put the data in you question into Columns A,B and C in a sheet and in cell D2 entered the array formula:
=SUM(($A$2:$A$8=A2)*($B$2:$B$8="pass"))
and then copied it down the column (rememer to use ctrl+shift+enter to enter the formula).
Column D then gives you a 0
where the student has not passed the exam.
You can the use "remove duplicates" on the data tab to remove the duplicates (clear the date box in the dialog) to leave you with a list of people who have not passed the exam, and then filter (again on the "data" tab) by column D.