This has to do with "state-dependent" learning. Ultimately, the best place to study would be in the same location you'll be tested in. However the information gets better generalized if studied (and applied) in a variety of settings. Abusive comment hidden. (Show it anyway.)