A sub-machine gun is an automatic weapon much shorter and less heavy than a rifle; It is designed to fire a large amount of cartridges in bursts, although it can also be triggered and shot by shot.