Some applications will ask if you used to smoke and how long ago you stopped, and you must answer this question correctly.
Insurers may request a medical test, and this will involve a cotinine test.
You must make sure that you declare your smoker status accurately as failure to do so could result in a claim being declined by the insurer.