the favourite food students bring into exam halls are, chocolates, energy bars. favourite fruit is banana as it is also an energy booster, and you don't make much noise when you eat it. :)
favorite drinks are the energy drinks and water. for a 3-hr exam, you need to sustain your energy while you 'pour' your mind onto paper.