"I think IQ of 100 is determined by the median of the test scores."
Not only median of the test scores, but also the median of the particular test group. A person may get a 125 when tested alongside their peers in school, but then get a 90 if tested in a group of scientists and researchers, and then end up with a 200 if tested in a group of people from a place with a severely underfunded educational system and high amounts of lead in the water. It all depends on the organization administering the test and the selection size that they use.
The test itself is deeply flawed in that it is trying to measure something infinitely complex and variable using a simple integer. Although it is useful in that anyone who believes that IQ is an accurate measure of intelligence is really a moron that shouldn't be listened to. The only contexts I've seen for people using IQ tests are either egotistical blowhards trying to prove they are better than someone, or idiotic racists that try to use it as an example of their race's superiority.