Which part of the truck is the air compressor connected to?

In an air brake system, the air compressor is connected to the engine through gears or a v-belt.
DMV Writen Test