What is the complete object of the following sentences? barack obama was elected president in 2008

A. Barack
B.Barack Obama
C. Obama
D. President D is not it