An Altoona resident was sentenced in federal court after pleading guilty in October to violating federal sex offense laws.