'Bargained for' in the phrase 'more than I bargained for' means expected or anticipated. The sentence means the exam was more difficult than the speaker had expected. 'Bargain with' means to negotiate, while 'bargain out' is not a standard phrasal verb.