An HPV test specifically looks for the presence of high-risk types of HPV that are most likely to cause cervical cancer. While a Pap smear examines the cells collected from the cervix for abnormalities, an HPV test checks for the DNA or RNA of the virus itself. Both tests can be performed simultaneously on the same sample.