In the sentence
They elected Prof. Palmer the head of that department for the second time., the head of that department is a direct object.
Questão de Inglês da banca CESPE CEBRASPE aplicada no concurso EBC (2011). Confira a resolução completa abaixo:
Nada por aqui