some more info than the OP ( or anyone else ) may want:
Pentax Lens Compatibility Chart
Copyright 2006-2018 Mosphotos.com. All rights reserved.
Pentax bayonet lenses labeled "SMC Pentax" are referred to as "K" lenses in the table below. Other Pentax bayonet lenses have the lens designation as a part of their name as in "SMC Pentax-FA".
Note that "star" lenses work like their "non-star" counterparts unless they are singled out in the table below. So for compatibility of a DA* lens, look under DA lenses, etc.
Exceptions: FA and F "soft" lenses behave like M lenses in terms of metering.
The Pentax Camera Lens Compatibility Chart
________________________________
Pentax K-Mount Lens Series Explained: The differences between various Pentax lens series
In a nutshell
There are several series of Pentax K-mount lenses; the ones currently being produced include the DA (digital), DA L (cheap digital kit), D FA (full-frame, digital optimized), and FA (full-frame) series. While all Pentax K-mount lenses ever produced are compatible with all current Pentax DSLRs (in some cases with restrictions in that not all exposure modes of the camera are supported by old lenses), there are significant differences between each lens series and each has different features. Furthermore some of the newer lenses do not work with older cameras. We'll be exploring the differences between the various K-mount series lenses in this article. Read more about specific K-mount lens/camera compatibility here.
The DLSR designation below encompasses the mirror-less K-01.
Pentax K-Mount Lenses Explained: The differences between various Pentax lens series