Cervical cancer (also known as human papillomavirus or HPV) – is a certain type of viral infection. A Pap smear is a screening procedure for cervical cancer. It tests for the presence of precancerous or cancerous cells on your cervix. Detecting cervical cancer early with a Pap smear gives you a greater chance of success. Most women ages 21 to 65 need regular Pap tests.