Getting the exposure right is both an art and a science. The art lies in working out how you want your picture to look and the interplay of light and shade, while the science is getting your camera to measure the light in the scene in the way you want.
To help measure and understand the light, cameras come with a variety of metering modes. The default option is multi-pattern metering, and most of us probably use this all the time without