What determines how much EXP a foe gives on death?

Greetings, all!

Just as the title says. For example, does killing a level 10 Ogre give less EXP than a level 12 Ogre if it's encountered in the same spot?

Thanks!