A 19-year old youth was today given death penalty by a court for raping a seven-month-old child in Alwar district of Rajasthan in May, the first such sentencing in the state after a law entailing capital punishment to those convicted of raping a child below 12 years of age came into force, according to police.