ProgrammingHard

Records (A, 3, x), (B, 3, a), (C, 1, m) are sorted by score descending and then by the name field ascending. What is the order of the first letters?

  1. A. A, B, C
  2. B. B, A, C
  3. C. B, C, A
  4. D. C, B, A

Correct answer: B. B, A, C

A and B tie on score 3, and a sorts before x, so B comes first. C has the lowest score.

More C Programming questions

Exams that ask this topic