Someone threw the chocolate wrapper on the floor.
The rules for changing a sentence into passive voice is- (Object) + (auxiliary verb) + (past participle) + (by subject). Hence, the correct answer is- ‘The chocolate wrapper was thrown on the floor by someone’.