The answer will depend on the city and the local and state law.
It is in some cities, not in others. Just phone your city's Municipal Bylaw Office and ask, they can and will tell you.
yes it is legal
NO!
yes
Ask your local police for a correct answer.
It would help if you stated what city you are asking about.
Is it illegal to shoot a pellet gun in the City Limits of Quincy IL>
no
You will need to check with the Costa Mesa Police dept.
Contact your local police for current and correct information.
It's perfectly legal to possess one within city limits. Whether you can actually shoot it within city limits may be a different matter, however.
The way the law reads is, "It's illegal to launch a projectile of any type with in the city limits. Pellet gun, slingshot, bow and arrow, etc, etc.
no
No, it would be illegal to shoot within the city limits