a) The legal punishment of killing someone
Ex: He was executed for murder.
Ex: A convicted murderer was executed in North Carolina yesterday.
Ex: He attempted to escape execution
b) Completion of formalities or steps required to make an agreement or other document legally valid.
Ex: He has failed in the execution of his duties.
Ex: Every day you fail to execute the task
Ex: The film is entirely professional in its execution