Further, 'rifle' is a term that has to do with actual length, not accuracy.
"Rifle" refers to having a "rifled" barrel as opposed to a smooth bore as did muskets and as do shotguns. The term is generally used for long guns today because a certain period of time went by in the late eighteen hundreds during which long guns were invariably rifled while pistols generally weren't. Today of course virtually all barrels in both long guns and pistols are rifled to make bullets spin, so that the term is being misused.