At these ranges, it could be a handgun! There are several that are chambered for .223. If so, it would easily fit in a backpack. Particualarly if it easily breaks down, like a Thompson Contender, for example. They can be scoped too, just like a rifle.
Thanks/Sac