You can remember the meaning of 死刑 with this easy mnemonic:
Do you agree with the death penalty? Imagine having to die (死) as punishment (刑).
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.