It varies with each school, as it seems each one wants to seem like they have a unique method for selecting their students. But no matter what method they use, averaging, highest, or latest, it pays to do better if you repeat the exam.
Also, it does seem like a majority of the schools simply enter your latest into the data pool.