1. They prevent revenge killing by requiring punishment or compensation for wrongdoing.
Explanation:
The Code of Hammurabi is the first written law in human history, and it is important because it established punishments for certain crimes. That is why both this code and Ten Commandments are important, because they prevented anarchy. For every crime in the Code of Hammurabi you had a certain punishment, very often even a death sentence.
The second one is not correct because it cannot apply to Ten Commandments.
The third one is also not correct because the legal systems for not developed in that period that much.